mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-11 17:58:16 +08:00
[saco] Match CVehiclePool::FUNC_1001E9B0; it rescans field_3074 for the highest live slot into field_0
This commit is contained in:
1 parent
f0e80175eb
commit
7b2acc2d2b
2 files changed
+13
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
Reference in new issue
Block a user