Fixed crash when driver's client is null

This commit is contained in:
smallmodel 2023-10-22 21:16:07 +02:00
parent 5cffe3fb05
commit cf61ae0332
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -2563,7 +2563,7 @@ void Vehicle::SetDriverAngles(Vector angles)
{ {
int i; int i;
if (!driver.ent) { if (!driver.ent || !driver.ent->client) {
return; return;
} }