Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
lil fix
  • Loading branch information
Sergeanur committed Oct 18, 2020
1 parent b91f6a4 commit cc0ae516319a028cd1ef1b317a26d58ef17ee6d0
Showing with 2 additions and 2 deletions.
  1. +2 −2 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();
}

0 comments on commit cc0ae51

Please sign in to comment.