summaryrefslogtreecommitdiff
path: root/src/control
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-10-18 16:55:11 +0300
committerSergeanur <s.anureev@yandex.ua>2020-10-18 16:55:11 +0300
commitcc0ae516319a028cd1ef1b317a26d58ef17ee6d0 (patch)
tree2018161cba8cf333845d7654df0fca48e8eb29c5 /src/control
parentb91f6a45501634b55f6ef2c08d57c5293d5fd3a0 (diff)
lil fix
Diffstat (limited to 'src/control')
-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 efd17f25..50e89ecc 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -9184,13 +9184,13 @@ int8 CRunningScript::ProcessCommands900To999(int32 command)
CObject* pObject = CPools::GetObjectPool()->GetAt(ScriptParams[0]);
script_assert(pObject);
if (ScriptParams[1]) {
- if (pObject->GetIsStatic()) {
+ if (pObject->bIsStatic) {
pObject->SetIsStatic(false);
pObject->AddToMovingList();
}
}
else {
- if (!pObject->GetIsStatic()) {
+ if (!pObject->bIsStatic) {
pObject->SetIsStatic(true);
pObject->RemoveFromMovingList();
}