mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 03:33:04 +08:00
[saco] Match CVehiclePool::FUNC_1001E9B0; it rescans field_3074 for the highest live slot into field_0
This commit is contained in:
@@ -27,3 +27,14 @@ int CVehiclePool::FindGtaIDFromID(int VehicleID)
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
void CVehiclePool::FUNC_1001E9B0()
|
||||
{
|
||||
int iHighest = 0;
|
||||
for(int i = 0; i < MAX_VEHICLES; i++) {
|
||||
if(field_3074[i]) iHighest = i;
|
||||
}
|
||||
field_0 = iHighest;
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
@@ -32,6 +32,8 @@ public:
|
||||
return 0;
|
||||
}
|
||||
|
||||
void FUNC_1001E9B0(); // .text:1001E9B0
|
||||
|
||||
short FUNC_1001EB90(int a1); // .text:1001EB90
|
||||
|
||||
int FindGtaIDFromID(int VehicleID); // .text:1001EBC0
|
||||
|
||||
Reference in New Issue
Block a user