mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-02-20 19:57:12 +01:00
Fix identifier check against wrong pool limits.
This commit is contained in:
parent
0918b975a5
commit
5d5fc9e2d6
@ -257,7 +257,7 @@ LightObj & CVehicle::GetOccupant(Int32 slot) const
|
||||
// Attempt to retrieve the requested information
|
||||
const int id = _Func->GetVehicleOccupant(m_ID, slot);
|
||||
// Was there an issue with the given value?
|
||||
if (INVALID_ENTITYEX(id, SQMOD_VEHICLE_POOL))
|
||||
if (INVALID_ENTITYEX(id, SQMOD_PLAYER_POOL))
|
||||
{
|
||||
const vcmpError err = _Func->GetLastError();
|
||||
// Identify the type of error
|
||||
|
Loading…
x
Reference in New Issue
Block a user