summaryrefslogtreecommitdiffstats
path: root/src/render/Instance.cpp
blob: 775341be027ef3ed0ebfa3d413124dff4e297fb3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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