summaryrefslogtreecommitdiffstats
path: root/src/control/Script.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-11-02 22:07:25 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-11-02 22:07:25 +0100
commite473123a6aa3769b7aeef54526561c2f1ab32cc1 (patch)
tree83bad0fe952bfcbdda6d41fee30e1d725b884866 /src/control/Script.cpp
parentembarassing (diff)
downloadre3-e473123a6aa3769b7aeef54526561c2f1ab32cc1.tar
re3-e473123a6aa3769b7aeef54526561c2f1ab32cc1.tar.gz
re3-e473123a6aa3769b7aeef54526561c2f1ab32cc1.tar.bz2
re3-e473123a6aa3769b7aeef54526561c2f1ab32cc1.tar.lz
re3-e473123a6aa3769b7aeef54526561c2f1ab32cc1.tar.xz
re3-e473123a6aa3769b7aeef54526561c2f1ab32cc1.tar.zst
re3-e473123a6aa3769b7aeef54526561c2f1ab32cc1.zip
Diffstat (limited to '')
-rw-r--r--src/control/Script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 40fb1ded..6aa314f2 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -12280,7 +12280,7 @@ int8 CRunningScript::ProcessCommands1200To1299(int32 command)
case COMMAND_IS_CONSTANT_GREATER_OR_EQUAL_TO_INT_VAR:
{
CollectParameters(&m_nIp, 1);
- int32* ptr = GetPointerToScriptVariable(&m_nIp, VAR_LOCAL);
+ int32* ptr = GetPointerToScriptVariable(&m_nIp, VAR_GLOBAL);
UpdateCompareFlag(ScriptParams[0] >= *ptr);
return 0;
}