WohlSoft / LunaLua

LunaLua - LunaDLL with Lua, is a free extension mod for SMBX 1.3 game engine, core of the X2 project.
https://codehaus.moe/
GNU General Public License v3.0
33 stars 12 forks source link

Fix crash on onNPCHarm cancellation #37

Closed Supermario1313 closed 9 months ago

Supermario1313 commented 2 years ago

Cancelling onNPCHarm can crash the game in some situations. I fixed one of them but there might be other ones (rixi's hammer bro crash could be one of them), hence why this pull request is still a draft.

Bluenaxela commented 9 months ago

This was cherry-picked as 21032762a3001e9224f681c2f535e355a04ff1e1 since I was fixing a very similar issue in ff2eeff2846707cda1bd6df264cc65d31cb39363