Removed !this check in CVehicle::IsWrecked, added CPed::IsNotInWreckedVehicle instead

This commit is contained in:
Sergeanur
2019-10-12 17:03:32 +03:00
parent 6f96098549
commit 35add59b34
3 changed files with 15 additions and 8 deletions

View File

@ -266,7 +266,7 @@ public:
bool ShufflePassengersToMakeSpace(void);
bool IsAlarmOn(void) { return m_nAlarmState != 0 && m_nAlarmState != -1; }
bool IsWrecked(void) { return !this || m_status == STATUS_WRECKED; }
bool IsWrecked(void) { return m_status == STATUS_WRECKED; }
CVehicleModelInfo* GetModelInfo() { return (CVehicleModelInfo*)CModelInfo::GetModelInfo(GetModelIndex()); }
static bool &bWheelsOnlyCheat;