1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Update Vehicle.cpp

This commit is contained in:
Sandu Liviu Catalin 2021-03-27 16:25:31 +02:00
parent bee47a44c4
commit 8a29e812b1

View File

@ -293,7 +293,7 @@ bool CVehicle::HasOccupant(int32_t slot) const
// Use the server errors to see if there was an occupant
const vcmpError err = _Func->GetLastError();
// Return whether there was no error and the returned ID is valid
return (err == vcmpErrorNone) && INVALID_ENTITYEX(id, SQMOD_PLAYER_POOL);
return (err == vcmpErrorNone) && VALID_ENTITYEX(id, SQMOD_PLAYER_POOL);
}
// ------------------------------------------------------------------------------------------------