summaryrefslogtreecommitdiff
path: root/src/entities/DummyObject.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-06-18 09:50:26 +0200
committeraap <aap@papnet.eu>2019-06-18 09:50:26 +0200
commit3b64bd1b4a5008b14b54edb257d4e8a5a8277c26 (patch)
treeca1ba1aef3b1c654f586d43b12dc27ea41c513b8 /src/entities/DummyObject.cpp
parentad122405863fd2385e07fb9b22187374b1a1bff0 (diff)
finished CFileLoader, except a crash!
Diffstat (limited to 'src/entities/DummyObject.cpp')
-rw-r--r--src/entities/DummyObject.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/entities/DummyObject.cpp b/src/entities/DummyObject.cpp
new file mode 100644
index 00000000..083ad6c6
--- /dev/null
+++ b/src/entities/DummyObject.cpp
@@ -0,0 +1,13 @@
+#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;
+}