summaryrefslogtreecommitdiffstats
path: root/src/control/Script.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-11 08:36:58 +0200
committerSergeanur <s.anureev@yandex.ua>2021-08-11 08:36:58 +0200
commit2c79080e1b16cb794b33e24508c11ab4fc259b48 (patch)
tree9f602753c501bd1524179753beeb52771f43e924 /src/control/Script.cpp
parentMerge remote-tracking branch 'upstream/lcs' into lcs (diff)
parentMerge branch 'master' into miami (diff)
downloadre3-2c79080e1b16cb794b33e24508c11ab4fc259b48.tar
re3-2c79080e1b16cb794b33e24508c11ab4fc259b48.tar.gz
re3-2c79080e1b16cb794b33e24508c11ab4fc259b48.tar.bz2
re3-2c79080e1b16cb794b33e24508c11ab4fc259b48.tar.lz
re3-2c79080e1b16cb794b33e24508c11ab4fc259b48.tar.xz
re3-2c79080e1b16cb794b33e24508c11ab4fc259b48.tar.zst
re3-2c79080e1b16cb794b33e24508c11ab4fc259b48.zip
Diffstat (limited to 'src/control/Script.cpp')
-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 6760f77f..5a61c2f7 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -3253,7 +3253,7 @@ int8 CRunningScript::ProcessCommands200To299(int32 command)
CTheScripts::ReadTextLabelFromScript(&m_nIp, label);
int zoneToCheck = CTheZones::FindZoneByLabelAndReturnIndex(label, ZONE_DEFAULT);
if (zoneToCheck != -1)
- m_nIp += KEY_LENGTH_IN_SCRIPT; /* why only if zone != 1? */
+ m_nIp += KEY_LENGTH_IN_SCRIPT; /* why only if zone != -1? */
CVector pos = pPlayer->GetPos();
CZone* pZone = CTheZones::GetNavigationZone(zoneToCheck);
UpdateCompareFlag(CTheZones::PointLiesWithinZone(&pos, pZone));