mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-09 20:18:17 +03:00
Fixed crash when driver's client is null
This commit is contained in:
parent
5cffe3fb05
commit
cf61ae0332
1 changed files with 1 additions and 1 deletions
|
@ -2563,7 +2563,7 @@ void Vehicle::SetDriverAngles(Vector angles)
|
|||
{
|
||||
int i;
|
||||
|
||||
if (!driver.ent) {
|
||||
if (!driver.ent || !driver.ent->client) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue