More refs removed

This commit is contained in:
Sergeanur
2020-04-16 15:30:47 +03:00
parent 7bd12f4a48
commit 83cbe4e39e
19 changed files with 88 additions and 89 deletions

20
src/render/Instance.cpp Normal file
View File

@@ -0,0 +1,20 @@
#include "common.h"
#include "patcher.h"
#include "Instance.h"
void
CInstance::Shutdown()
{
GetMatrix().Detach();
}
class CInstance_ : public CInstance
{
public:
void dtor() { CInstance::~CInstance(); }
};
STARTPATCHES
InjectHook(0x50BE90, &CInstance_::dtor, PATCH_JUMP);
InjectHook(0x50B850, &CInstance::Shutdown, PATCH_JUMP);
ENDPATCHES