Fix crash on newsteam

This commit is contained in:
Silent 2018-05-20 22:00:13 +02:00
parent a763b69205
commit 9d30b51273
No known key found for this signature in database
GPG key ID: AE53149BB0C45AF1

View file

@ -1075,7 +1075,7 @@ CVehicleModelInfo* __fastcall VehicleModelInfoCtor(CVehicleModelInfo* me)
return me; return me;
} }
static void (*RemoveFromInterestingVehicleList)(CVehicle*) = AddressByVersion<void(*)(CVehicle*)>( 0x423ED0, Memory::PatternAndOffset("39 10 75 06 C7 00 00 00 00 00 83 C0 04 49 75 F0 5D C3", -10) ); static void (*RemoveFromInterestingVehicleList)(CVehicle*) = AddressByVersion<void(*)(CVehicle*)>( 0x423ED0, Memory::PatternAndOffset("39 10 75 06 C7 00 00 00 00 00 83 C0 04 49 75 F0 5D C3", -0x10) );
static void (*orgRecordVehicleDeleted)(CVehicle*); static void (*orgRecordVehicleDeleted)(CVehicle*);
static void RecordVehicleDeleted_AndRemoveFromVehicleList( CVehicle* vehicle ) static void RecordVehicleDeleted_AndRemoveFromVehicleList( CVehicle* vehicle )
{ {