mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 08:47:17 +01:00
Update Vehicle.cpp
This commit is contained in:
parent
bee47a44c4
commit
8a29e812b1
@ -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);
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user