From 53023eb65bdcde43e341c1ecb7cf0c7f8ee524fb Mon Sep 17 00:00:00 2001 From: aap Date: Sun, 7 Jul 2019 13:09:11 +0200 Subject: the great reorganization --- src/objects/DummyObject.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/objects/DummyObject.cpp (limited to 'src/objects/DummyObject.cpp') diff --git a/src/objects/DummyObject.cpp b/src/objects/DummyObject.cpp new file mode 100644 index 00000000..1e4b2ae0 --- /dev/null +++ b/src/objects/DummyObject.cpp @@ -0,0 +1,17 @@ +#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; +} + +STARTPATCHES + InjectHook(0x4BAB70, &CDummyObject::dtor, PATCH_JUMP); +ENDPATCHES \ No newline at end of file -- cgit v1.2.3