1
0
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:
Sandu Liviu Catalin 2018-01-24 17:59:51 +02:00
parent 0918b975a5
commit 5d5fc9e2d6

View File

@ -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