From 271c9993da9a2f1263237ee70ed8966ce7411d0a Mon Sep 17 00:00:00 2001 From: nillerusr Date: Sun, 30 Apr 2023 17:03:03 +0300 Subject: [PATCH] hl2: fix random crash when combine throws a can --- .gitignore | 2 -- game/server/hl2/ai_behavior_police.cpp | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 37d8b4c9..717bd12d 100644 --- a/.gitignore +++ b/.gitignore @@ -37,5 +37,3 @@ waf3*/ .vscode/ .depproj/ source-engine.sln -hl2/ - diff --git a/game/server/hl2/ai_behavior_police.cpp b/game/server/hl2/ai_behavior_police.cpp index eb1b45b3..a3062ddc 100644 --- a/game/server/hl2/ai_behavior_police.cpp +++ b/game/server/hl2/ai_behavior_police.cpp @@ -33,6 +33,7 @@ CAI_PolicingBehavior::CAI_PolicingBehavior( void ) m_bEnabled = false; m_nNumWarnings = 0; m_bTargetIsHostile = false; + m_hPoliceGoal = NULL; } //-----------------------------------------------------------------------------