diff options
author | Nikolay <nickvnuk@gmail.com> | 2020-12-24 15:22:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-24 15:22:28 +0100 |
commit | c995bdcdaf9b1c3f6b74eb7e56d2d486ee1b25b8 (patch) | |
tree | d126cc1fb7832f1cb54b18cc40729b87bc27269d /src/control/Script.cpp | |
parent | make screen droplets not crash without neo.txd (diff) | |
parent | fix (diff) | |
download | re3-c995bdcdaf9b1c3f6b74eb7e56d2d486ee1b25b8.tar re3-c995bdcdaf9b1c3f6b74eb7e56d2d486ee1b25b8.tar.gz re3-c995bdcdaf9b1c3f6b74eb7e56d2d486ee1b25b8.tar.bz2 re3-c995bdcdaf9b1c3f6b74eb7e56d2d486ee1b25b8.tar.lz re3-c995bdcdaf9b1c3f6b74eb7e56d2d486ee1b25b8.tar.xz re3-c995bdcdaf9b1c3f6b74eb7e56d2d486ee1b25b8.tar.zst re3-c995bdcdaf9b1c3f6b74eb7e56d2d486ee1b25b8.zip |
Diffstat (limited to 'src/control/Script.cpp')
-rw-r--r-- | src/control/Script.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp index 67d2e618..6aa48d81 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -58,7 +58,7 @@ int32 CTheScripts::StoreVehicleIndex; bool CTheScripts::StoreVehicleWasRandom; CRunningScript *CTheScripts::pIdleScripts; CRunningScript *CTheScripts::pActiveScripts; -uint32 CTheScripts::NextFreeCollectiveIndex; +int32 CTheScripts::NextFreeCollectiveIndex; int32 CTheScripts::LastRandomPedId; uint16 CTheScripts::NumberOfUsedObjects; bool CTheScripts::bAlreadyRunningAMissionScript; @@ -1810,8 +1810,8 @@ void CTheScripts::Init() OnAMissionForContactFlag[i] = 0; } for (int i = 0; i < MAX_NUM_COLLECTIVES; i++){ - CollectiveArray[i].index = -1; - CollectiveArray[i].unk_data = 0; + CollectiveArray[i].colIndex = -1; + CollectiveArray[i].pedIndex = 0; } NextFreeCollectiveIndex = 0; LastRandomPedId = -1; |