1 2 3 4 5 6 7 8 9 10 11 12 13
#include "common.h" #include "patcher.h" #include "Instance.h" class CInstance_ : public CInstance { public: void dtor() { CInstance::~CInstance(); } }; STARTPATCHES InjectHook(0x50BE90, &CInstance_::dtor, PATCH_JUMP); ENDPATCHES