mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-11-23 20:27:08 +01:00
Update Vehicle.cpp
This commit is contained in:
1 parent
bee47a44c4
commit
8a29e812b1
1 file changed
+1
-1
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in new issue
Block a user