mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-01-19 03:57:14 +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
|
// Use the server errors to see if there was an occupant
|
||||||
const vcmpError err = _Func->GetLastError();
|
const vcmpError err = _Func->GetLastError();
|
||||||
// Return whether there was no error and the returned ID is valid
|
// 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…
x
Reference in New Issue
Block a user