Skip to content
Snippets Groups Projects
Commit 52410300 authored by Monster Iestyn's avatar Monster Iestyn
Browse files

Fix ShouldDamage, MobjDamage and MobjDeath hooks all messing up the pushing of...

Fix ShouldDamage, MobjDamage and MobjDeath hooks all messing up the pushing of variables to Lua as function args, by adding damagetype support where it was missing!

The above issue occured only if you had both a generic hook and a type specific hook for a particular hook type. This way, the stack is never updated to include damagetype at the start, and all pushes of the variables get offsetted by 1 compared to what they should be, once the code *expects* damagetype to be included in it.
parent 9b89ed92
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment