diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-01-12 01:25:51 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-01-12 01:28:08 +0100 |
commit | dcb4eedeb0ad694c57d42cc593eeb4c84dd998ba (patch) | |
tree | 6a8e4c01b294b258df3a2edd64a268506721e3ed /src/control | |
parent | Merge pull request #949 from majesticCoding/lcs (diff) | |
download | re3-dcb4eedeb0ad694c57d42cc593eeb4c84dd998ba.tar re3-dcb4eedeb0ad694c57d42cc593eeb4c84dd998ba.tar.gz re3-dcb4eedeb0ad694c57d42cc593eeb4c84dd998ba.tar.bz2 re3-dcb4eedeb0ad694c57d42cc593eeb4c84dd998ba.tar.lz re3-dcb4eedeb0ad694c57d42cc593eeb4c84dd998ba.tar.xz re3-dcb4eedeb0ad694c57d42cc593eeb4c84dd998ba.tar.zst re3-dcb4eedeb0ad694c57d42cc593eeb4c84dd998ba.zip |
Diffstat (limited to 'src/control')
-rw-r--r-- | src/control/Script5.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/control/Script5.cpp b/src/control/Script5.cpp index eb1530c4..c0909356 100644 --- a/src/control/Script5.cpp +++ b/src/control/Script5.cpp @@ -2531,7 +2531,7 @@ int CTheScripts::FindFreeSlotInCollectiveArray() void CTheScripts::SetObjectiveForAllPedsInCollective(int colIndex, eObjective objective, int16 p1, int16 p2) { for (int i = 0; i < MAX_NUM_COLLECTIVES; i++) { - if (CollectiveArray[i].colIndex = colIndex) { + if (CollectiveArray[i].colIndex == colIndex) { CPed* pPed = CPools::GetPedPool()->GetAt(CollectiveArray[i].pedIndex); if (pPed == nil) { CollectiveArray[i].colIndex = -1; @@ -2548,7 +2548,7 @@ void CTheScripts::SetObjectiveForAllPedsInCollective(int colIndex, eObjective ob void CTheScripts::SetObjectiveForAllPedsInCollective(int colIndex, eObjective objective, CVector p1, float p2) { for (int i = 0; i < MAX_NUM_COLLECTIVES; i++) { - if (CollectiveArray[i].colIndex = colIndex) { + if (CollectiveArray[i].colIndex == colIndex) { CPed* pPed = CPools::GetPedPool()->GetAt(CollectiveArray[i].pedIndex); if (pPed == nil) { CollectiveArray[i].colIndex = -1; @@ -2565,7 +2565,7 @@ void CTheScripts::SetObjectiveForAllPedsInCollective(int colIndex, eObjective ob void CTheScripts::SetObjectiveForAllPedsInCollective(int colIndex, eObjective objective, CVector p1) { for (int i = 0; i < MAX_NUM_COLLECTIVES; i++) { - if (CollectiveArray[i].colIndex = colIndex) { + if (CollectiveArray[i].colIndex == colIndex) { CPed* pPed = CPools::GetPedPool()->GetAt(CollectiveArray[i].pedIndex); if (pPed == nil) { CollectiveArray[i].colIndex = -1; @@ -2582,7 +2582,7 @@ void CTheScripts::SetObjectiveForAllPedsInCollective(int colIndex, eObjective ob void CTheScripts::SetObjectiveForAllPedsInCollective(int colIndex, eObjective objective, void* p1) { for (int i = 0; i < MAX_NUM_COLLECTIVES; i++) { - if (CollectiveArray[i].colIndex = colIndex) { + if (CollectiveArray[i].colIndex == colIndex) { CPed* pPed = CPools::GetPedPool()->GetAt(CollectiveArray[i].pedIndex); if (pPed == nil) { CollectiveArray[i].colIndex = -1; @@ -2599,7 +2599,7 @@ void CTheScripts::SetObjectiveForAllPedsInCollective(int colIndex, eObjective ob void CTheScripts::SetObjectiveForAllPedsInCollective(int colIndex, eObjective objective) { for (int i = 0; i < MAX_NUM_COLLECTIVES; i++) { - if (CollectiveArray[i].colIndex = colIndex) { + if (CollectiveArray[i].colIndex == colIndex) { CPed* pPed = CPools::GetPedPool()->GetAt(CollectiveArray[i].pedIndex); if (pPed == nil) { CollectiveArray[i].colIndex = -1; |