diff options
author | SmallJoker <mk939@ymail.com> | 2017-09-21 19:56:11 +0200 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2017-09-21 19:56:24 +0200 |
commit | 67f97f8d3274e0e96a8f541a05a39f81dfec1a20 (patch) | |
tree | 8bb5712b7def164ad1af80aca01129d51d2e23e7 /src/script | |
parent | 080899b0f1f3c48e9038bff806815016d2b45508 (diff) | |
download | minetest-67f97f8d3274e0e96a8f541a05a39f81dfec1a20.tar.gz minetest-67f97f8d3274e0e96a8f541a05a39f81dfec1a20.tar.bz2 minetest-67f97f8d3274e0e96a8f541a05a39f81dfec1a20.zip |
on_death: Fix callback number of pushed arguments (Fixes #6451)
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/cpp_api/s_entity.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/cpp_api/s_entity.cpp b/src/script/cpp_api/s_entity.cpp index a97b0c12c..df4b77936 100644 --- 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 |