summaryrefslogtreecommitdiffstats
path: root/src/objects/DummyObject.cpp
blob: 41b15129d672a7d72c7e2657d9614fe361a7c65c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "common.h"
#include "patcher.h"
#include "DummyObject.h"
#include "Pools.h"

CDummyObject::CDummyObject(CObject *obj)
{
	SetModelIndexNoCreate(obj->GetModelIndex());
	if(obj->m_rwObject)
		AttachToRwObject(obj->m_rwObject);
	obj->DetachFromRwObject();
	m_level = obj->m_level;
}

class CDummyObject_ : public CDummyObject
{
public:
	void dtor(void) { CDummyObject::~CDummyObject(); }
};

STARTPATCHES
	InjectHook(0x4BAB70, &CDummyObject_::dtor, PATCH_JUMP);
ENDPATCHES