summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
Diffstat (limited to 'src/control')
-rw-r--r--src/control/Script3.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Script3.cpp b/src/control/Script3.cpp
index 67d6fdda..aba06d03 100644
--- a/src/control/Script3.cpp
+++ b/src/control/Script3.cpp
@@ -2400,7 +2400,7 @@ int8 CRunningScript::ProcessCommands700To799(int32 command)
CPed* pLeader = CPools::GetPedPool()->GetAt(ScriptParams[1]);
script_assert(pPed);
script_assert(pLeader);
- UpdateCompareFlag(pPed->m_leader == pLeader);
+ UpdateCompareFlag(pPed->m_leader == pLeader && !pPed->bWaitForLeaderToComeCloser);
return 0;
}
default: