summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-30 21:04:07 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-30 21:04:07 +0200
commit063bf51bf137c26a4315183f798f1dfc55e15bf7 (patch)
tree3eae2af30b2fee8b7ae9fbd41506ec3a124cce24 /src
parentMerge remote-tracking branch 'upstream/master' (diff)
downloadre3-063bf51bf137c26a4315183f798f1dfc55e15bf7.tar
re3-063bf51bf137c26a4315183f798f1dfc55e15bf7.tar.gz
re3-063bf51bf137c26a4315183f798f1dfc55e15bf7.tar.bz2
re3-063bf51bf137c26a4315183f798f1dfc55e15bf7.tar.lz
re3-063bf51bf137c26a4315183f798f1dfc55e15bf7.tar.xz
re3-063bf51bf137c26a4315183f798f1dfc55e15bf7.tar.zst
re3-063bf51bf137c26a4315183f798f1dfc55e15bf7.zip
Diffstat (limited to '')
-rw-r--r--src/core/Pools.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/Pools.h b/src/core/Pools.h
index 6e5b0ac1..67fd29b2 100644
--- a/src/core/Pools.h
+++ b/src/core/Pools.h
@@ -121,8 +121,8 @@ struct CEntityProperties
void Store(CEntity* pEntity)
{
- m_type = pEntity->m_type;
- m_status = pEntity->m_status;
+ m_type = pEntity->GetType();
+ m_status = pEntity->GetStatus();
bUsesCollision = pEntity->bUsesCollision;
bCollisionProcessed = pEntity->bCollisionProcessed;
bIsStatic = pEntity->bIsStatic;
@@ -161,8 +161,8 @@ struct CEntityProperties
void Restore(CEntity* pEntity)
{
- pEntity->m_type = m_type;
- pEntity->m_status = m_status;
+ pEntity->SetType((eEntityType)m_type);
+ pEntity->SetStatus((eEntityStatus)m_status);
pEntity->bUsesCollision = bUsesCollision;
pEntity->bCollisionProcessed = bCollisionProcessed;
pEntity->bIsStatic = bIsStatic;