diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-11-02 21:53:52 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-11-02 21:53:52 +0100 |
commit | 0ccc70c843061ef0a38593863fe2a987e33e10d1 (patch) | |
tree | 0740372fa3d4166ad429dfce58ab341a7fac4f4a | |
parent | Merge branch 'miami' of github.com:GTAmodding/re3 into miami (diff) | |
download | re3-0ccc70c843061ef0a38593863fe2a987e33e10d1.tar re3-0ccc70c843061ef0a38593863fe2a987e33e10d1.tar.gz re3-0ccc70c843061ef0a38593863fe2a987e33e10d1.tar.bz2 re3-0ccc70c843061ef0a38593863fe2a987e33e10d1.tar.lz re3-0ccc70c843061ef0a38593863fe2a987e33e10d1.tar.xz re3-0ccc70c843061ef0a38593863fe2a987e33e10d1.tar.zst re3-0ccc70c843061ef0a38593863fe2a987e33e10d1.zip |
-rw-r--r-- | src/control/Script.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp index f9935e21..40fb1ded 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -12125,14 +12125,14 @@ int8 CRunningScript::ProcessCommands1100To1199(int32 command) { int32* ptr = GetPointerToScriptVariable(&m_nIp, VAR_GLOBAL); CollectParameters(&m_nIp, 1); - UpdateCompareFlag(*ptr = ScriptParams[0]); + UpdateCompareFlag(*ptr == ScriptParams[0]); return 0; } case COMMAND_IS_INT_LVAR_EQUAL_TO_CONSTANT: { int32* ptr = GetPointerToScriptVariable(&m_nIp, VAR_LOCAL); CollectParameters(&m_nIp, 1); - UpdateCompareFlag(*ptr = ScriptParams[0]); + UpdateCompareFlag(*ptr == ScriptParams[0]); return 0; } case COMMAND_GET_DEAD_CHAR_PICKUP_COORDS: |