//----------------------------------------------------------------------------------------------------------- void ~SCR_CharacterDamageManagerComponent() { RemoveBleeding(); }
I think this is causing the game to crash if a unit is deleted if they are bleeding.
The problem is, it cannot be overwritten, because it's in the destructor
All vanilla functions for moddable classes should use a buffer function to allow overwriting by modding.
example:
//----------------------------------------------------------------------------------------------------------- void OnDestruction() { RemoveBleeding(); }; //----------------------------------------------------------------------------------------------------------- void ~SCR_CharacterDamageManagerComponent() { OnDestruction(); }
Now anyone can just override the buffer function and remove crashes