summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-06 14:43:23 +0200
committeraap <aap@papnet.eu>2020-05-06 14:43:23 +0200
commit25a4091fa86f81d4d3b8d74a125c484d9241934d (patch)
treee8d89895df06e142938b737909edf254228bcbd0
parentMerge branch 'miami' of github.com:GTAmodding/re3 into miami (diff)
downloadre3-25a4091fa86f81d4d3b8d74a125c484d9241934d.tar
re3-25a4091fa86f81d4d3b8d74a125c484d9241934d.tar.gz
re3-25a4091fa86f81d4d3b8d74a125c484d9241934d.tar.bz2
re3-25a4091fa86f81d4d3b8d74a125c484d9241934d.tar.lz
re3-25a4091fa86f81d4d3b8d74a125c484d9241934d.tar.xz
re3-25a4091fa86f81d4d3b8d74a125c484d9241934d.tar.zst
re3-25a4091fa86f81d4d3b8d74a125c484d9241934d.zip
-rw-r--r--src/entities/Entity.cpp1
-rw-r--r--src/objects/DummyObject.cpp1
-rw-r--r--src/objects/Object.cpp1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/entities/Entity.cpp b/src/entities/Entity.cpp
index 107238c3..6c7a628e 100644
--- a/src/entities/Entity.cpp
+++ b/src/entities/Entity.cpp
@@ -77,6 +77,7 @@ CEntity::CEntity(void)
m_scanCode = 0;
m_modelIndex = -1;
m_rwObject = nil;
+ m_area = AREA_MAIN_MAP;
m_randomSeed = CGeneral::GetRandomNumber();
m_pFirstReference = nil;
}
diff --git a/src/objects/DummyObject.cpp b/src/objects/DummyObject.cpp
index d5805073..8dd1643d 100644
--- a/src/objects/DummyObject.cpp
+++ b/src/objects/DummyObject.cpp
@@ -10,4 +10,5 @@ CDummyObject::CDummyObject(CObject *obj)
AttachToRwObject(obj->m_rwObject);
obj->DetachFromRwObject();
m_level = obj->m_level;
+ m_area = obj->m_area;
}
diff --git a/src/objects/Object.cpp b/src/objects/Object.cpp
index ab1290b0..fb1ab1a7 100644
--- a/src/objects/Object.cpp
+++ b/src/objects/Object.cpp
@@ -68,6 +68,7 @@ CObject::CObject(CDummyObject *dummy)
dummy->DetachFromRwObject();
Init();
m_level = dummy->m_level;
+ m_area = dummy->m_area;
}
CObject::~CObject(void)