summaryrefslogtreecommitdiffstats
path: root/src/control/Script.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-12-31 17:29:13 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-12-31 17:29:13 +0100
commit56ea1c7be77a9a8d14c77401ba7ecb76cb891d34 (patch)
treeadee22ae424788aed56475b6e7ae3ba77680c62b /src/control/Script.cpp
parentfix UB (diff)
downloadre3-56ea1c7be77a9a8d14c77401ba7ecb76cb891d34.tar
re3-56ea1c7be77a9a8d14c77401ba7ecb76cb891d34.tar.gz
re3-56ea1c7be77a9a8d14c77401ba7ecb76cb891d34.tar.bz2
re3-56ea1c7be77a9a8d14c77401ba7ecb76cb891d34.tar.lz
re3-56ea1c7be77a9a8d14c77401ba7ecb76cb891d34.tar.xz
re3-56ea1c7be77a9a8d14c77401ba7ecb76cb891d34.tar.zst
re3-56ea1c7be77a9a8d14c77401ba7ecb76cb891d34.zip
Diffstat (limited to 'src/control/Script.cpp')
-rw-r--r--src/control/Script.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 5ff5a383..9d5e347b 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -4767,10 +4767,10 @@ void CRunningScript::Save(uint8*& buf)
#endif
for (int i = 0; i < NUM_LOCAL_VARS + NUM_TIMERS; i++)
WriteSaveBuf<int32>(buf, m_anLocalVariables[i]);
+ WriteSaveBuf<bool>(buf, m_bIsActive);
WriteSaveBuf<bool>(buf, m_bCondResult);
WriteSaveBuf<bool>(buf, m_bIsMissionScript);
WriteSaveBuf<bool>(buf, m_bSkipWakeTime);
- SkipSaveBuf(buf, 1);
WriteSaveBuf<uint32>(buf, m_nWakeTime);
WriteSaveBuf<uint16>(buf, m_nAndOrState);
WriteSaveBuf<bool>(buf, m_bNotFlag);
@@ -4802,10 +4802,10 @@ void CRunningScript::Load(uint8*& buf)
#endif
for (int i = 0; i < NUM_LOCAL_VARS + NUM_TIMERS; i++)
m_anLocalVariables[i] = ReadSaveBuf<int32>(buf);
+ m_bIsActive = ReadSaveBuf<bool>(buf);
m_bCondResult = ReadSaveBuf<bool>(buf);
m_bIsMissionScript = ReadSaveBuf<bool>(buf);
m_bSkipWakeTime = ReadSaveBuf<bool>(buf);
- SkipSaveBuf(buf, 1);
m_nWakeTime = ReadSaveBuf<uint32>(buf);
m_nAndOrState = ReadSaveBuf<uint16>(buf);
m_bNotFlag = ReadSaveBuf<bool>(buf);