summaryrefslogtreecommitdiffstats
path: root/src/objects/DummyObject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/objects/DummyObject.cpp')
-rw-r--r--src/objects/DummyObject.cpp17
1 files changed, 17 insertions, 0 deletions
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