mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-02-21 20:27:13 +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
|
// Attempt to retrieve the requested information
|
||||||
const int id = _Func->GetVehicleOccupant(m_ID, slot);
|
const int id = _Func->GetVehicleOccupant(m_ID, slot);
|
||||||
// Was there an issue with the given value?
|
// 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();
|
const vcmpError err = _Func->GetLastError();
|
||||||
// Identify the type of error
|
// Identify the type of error
|
||||||
|
Loading…
x
Reference in New Issue
Block a user