This commit is contained in:
Nikolay Korolev 2020-06-20 13:51:39 +03:00
parent eab6741afe
commit 144f12525e

View file

@ -11099,7 +11099,6 @@ int8 CRunningScript::ProcessCommands1200To1299(int32 command)
case COMMAND_IS_CHAR_OBJ_NO_OBJ: case COMMAND_IS_CHAR_OBJ_NO_OBJ:
{ {
CollectParameters(&m_nIp, 1); CollectParameters(&m_nIp, 1);
CollectParameters(&m_nIp, 3);
CPed* pPed = CPools::GetPedPool()->GetAt(ScriptParams[0]); CPed* pPed = CPools::GetPedPool()->GetAt(ScriptParams[0]);
assert(pPed); assert(pPed);
UpdateCompareFlag(pPed->m_prevObjective == OBJECTIVE_NONE && pPed->m_objective == OBJECTIVE_NONE); UpdateCompareFlag(pPed->m_prevObjective == OBJECTIVE_NONE && pPed->m_objective == OBJECTIVE_NONE);