summaryrefslogtreecommitdiff
path: root/src/entities/Treadable.cpp
blob: ea949f006461d881369faf06b513f19ce3e44c94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "common.h"
#include "patcher.h"
#include "rpworld.h"
#include "Treadable.h"
#include "Pools.h"

void *CTreadable::operator new(size_t sz) { return CPools::GetTreadablePool()->New();  }
void CTreadable::operator delete(void *p, size_t sz) { CPools::GetTreadablePool()->Delete((CTreadable*)p); }

class CTreadable_ : public CTreadable
{
public:
	void dtor(void) { CTreadable::~CTreadable(); }
};

STARTPATCHES
	InjectHook(0x405A10, &CTreadable_::dtor, PATCH_JUMP);
ENDPATCHES