summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-08-11 22:43:11 +0200
committerGitHub <noreply@github.com>2019-08-11 22:43:11 +0200
commit1497dbaa8d068e1e0321d48137aa7349b2ce5b2d (patch)
treecf3089596604c01fd8da41ed3920f19d60b306f8 /src/control
parentMerge pull request #186 from Nick007J/master (diff)
downloadre3-1497dbaa8d068e1e0321d48137aa7349b2ce5b2d.tar
re3-1497dbaa8d068e1e0321d48137aa7349b2ce5b2d.tar.gz
re3-1497dbaa8d068e1e0321d48137aa7349b2ce5b2d.tar.bz2
re3-1497dbaa8d068e1e0321d48137aa7349b2ce5b2d.tar.lz
re3-1497dbaa8d068e1e0321d48137aa7349b2ce5b2d.tar.xz
re3-1497dbaa8d068e1e0321d48137aa7349b2ce5b2d.tar.zst
re3-1497dbaa8d068e1e0321d48137aa7349b2ce5b2d.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/CarCtrl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/CarCtrl.cpp b/src/control/CarCtrl.cpp
index b2468a76..d2d3ed5f 100644
--- a/src/control/CarCtrl.cpp
+++ b/src/control/CarCtrl.cpp
@@ -48,7 +48,7 @@ uint32 &CCarCtrl::LastTimeLawEnforcerCreated = *(uint32*)0x8F5FF0;
int32 (&CCarCtrl::TotalNumOfCarsOfRating)[7] = *(int32(*)[7])*(uintptr*)0x8F1A60;
int32 (&CCarCtrl::NextCarOfRating)[7] = *(int32(*)[7])*(uintptr*)0x9412AC;
int32 (&CCarCtrl::CarArrays)[7][256] = *(int32(*)[7][256])*(uintptr*)0x6EB860;
-CVehicle* (&apCarsToKeep)[MAX_CARS_TO_KEEP] = *(CVehicle*(*)[MAX_CARS_TO_KEEP])0x70D830;
+CVehicle* (&apCarsToKeep)[MAX_CARS_TO_KEEP] = *(CVehicle*(*)[MAX_CARS_TO_KEEP])*(uintptr*)0x70D830;
WRAPPER void CCarCtrl::SwitchVehicleToRealPhysics(CVehicle*) { EAXJMP(0x41F7F0); }
WRAPPER void CCarCtrl::UpdateCarCount(CVehicle*, bool) { EAXJMP(0x4202E0); }
@@ -884,4 +884,4 @@ InjectHook(0x417EC0, &CCarCtrl::ChooseModel, PATCH_JUMP);
InjectHook(0x418320, &CCarCtrl::RemoveDistantCars, PATCH_JUMP);
InjectHook(0x418430, &CCarCtrl::PossiblyRemoveVehicle, PATCH_JUMP);
InjectHook(0x418C10, &CCarCtrl::FindMaximumSpeedForThisCarInTraffic, PATCH_JUMP);
-ENDPATCHES \ No newline at end of file
+ENDPATCHES