From 4d3f51a7207d5a91de836648202d370b1ed172a2 Mon Sep 17 00:00:00 2001 From: Blixibon Date: Wed, 17 Mar 2021 10:45:31 -0500 Subject: [PATCH] Fixed a compile error from when NEW_RESPONSE_SYSTEM is disabled --- sp/src/game/server/basemultiplayerplayer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sp/src/game/server/basemultiplayerplayer.cpp b/sp/src/game/server/basemultiplayerplayer.cpp index d5a99514..d75ec627 100644 --- a/sp/src/game/server/basemultiplayerplayer.cpp +++ b/sp/src/game/server/basemultiplayerplayer.cpp @@ -96,7 +96,10 @@ bool CBaseMultiplayerPlayer::SpeakConcept( AI_Response &response, int iConcept ) concept.SetSpeaker(this); return FindResponse( response, concept ); #else - return SpeakFindResponse( response, g_pszMPConcepts[iConcept] ); + AI_Response *pResponse = SpeakFindResponse( g_pszMPConcepts[iConcept] ); + if (pResponse) + response = *pResponse; + return pResponse != NULL; #endif }