projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
080899b
)
on_death: Fix callback number of pushed arguments (Fixes #6451)
author
SmallJoker
<mk939@ymail.com>
Thu, 21 Sep 2017 17:56:11 +0000
(19:56 +0200)
committer
SmallJoker
<mk939@ymail.com>
Thu, 21 Sep 2017 17:56:24 +0000
(19:56 +0200)
src/script/cpp_api/s_entity.cpp
patch
|
blob
|
history
diff --git
a/src/script/cpp_api/s_entity.cpp
b/src/script/cpp_api/s_entity.cpp
index a97b0c12c8c6aac92fdaf928a82ec1fcc68b04e3..df4b77936836fba837154c63e5a1d472c680a02c 100644
(file)
--- a/
src/script/cpp_api/s_entity.cpp
+++ b/
src/script/cpp_api/s_entity.cpp
@@
-283,7
+283,7
@@
bool ScriptApiEntity::luaentity_on_death(u16 id, ServerActiveObject *killer)
objectrefGetOrCreate(L, killer); // killer reference
setOriginFromTable(object);
- PCALL_RES(lua_pcall(L,
6
, 1, error_handler));
+ PCALL_RES(lua_pcall(L,
2
, 1, error_handler));
bool retval = lua_toboolean(L, -1);
lua_pop(L, 2); // Pop object and error handler