From 61bdd7d95e19581bdfb3f7cb033d3783fa66aaaa Mon Sep 17 00:00:00 2001 From: mittorn Date: Wed, 11 Jan 2017 23:49:55 +0200 Subject: [PATCH] Do not crash on lost bodyque --- dlls/world.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/world.cpp b/dlls/world.cpp index 4ac56925..327dbc62 100644 --- a/dlls/world.cpp +++ b/dlls/world.cpp @@ -230,6 +230,9 @@ void CopyToBodyQue( entvars_t *pev ) if( pev->effects & EF_NODRAW ) return; + if( !g_pBodyQueueHead ) + InitBodyQue(); + entvars_t *pevHead = VARS( g_pBodyQueueHead ); pevHead->angles = pev->angles;