Refactored ManualBindings' callbacks using templates.
This is a bit easier to read, has better error reporting and fixes a few subtle bugs. Fixes #1889.
This commit is contained in:
@@ -82,7 +82,7 @@ function Initialize(a_Plugin)
|
||||
a_CBPlayer:GetWorld():DoWithEntityByID( -- This will crash the server in #1889
|
||||
a_CBEntity:GetUniqueID(),
|
||||
function(Entity)
|
||||
LOG("RightClicking an entity, crash #1889 fixed")
|
||||
LOG("RightClicking an entity, crash #1889 fixed. Entity is a " .. tolua.type(Entity))
|
||||
end
|
||||
)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user