Check for the vehicle owner
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 19s

This commit is contained in:
smallmodel 2025-01-15 20:16:58 +01:00 committed by GitHub
parent 4bec5cef01
commit 94aaeac194
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -370,6 +370,11 @@ void VehicleTurretGun::P_UserAim(usercmd_t *ucmd)
return; return;
} }
if (!m_pVehicleOwner) {
// Added in OPM
return;
}
if (!m_pVehicleOwner->IsSubclassOfVehicle()) { if (!m_pVehicleOwner->IsSubclassOfVehicle()) {
return; return;
} }