Skip to content

Commit

Permalink
Resolves the issue of killing some monsters giving error on distro (#370
Browse files Browse the repository at this point in the history
)
  • Loading branch information
dudantas committed May 3, 2022
1 parent d2279bf commit 8686cd9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lua/creature/creatureevent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,7 @@ bool CreatureEvent::executeOnDeath(Creature* creature, Item* corpse, Creature* k
LuaScriptInterface::pushUserdata<Creature>(L, creature);
LuaScriptInterface::setCreatureMetatable(L, -1, creature);

if (corpse && corpse != 0) {
LuaScriptInterface::pushThing(L, corpse);
}
LuaScriptInterface::pushThing(L, corpse);

if (killer) {
LuaScriptInterface::pushUserdata<Creature>(L, killer);
Expand Down

0 comments on commit 8686cd9

Please sign in to comment.