Skip to content

Commit 4b1b8d2

Browse files
committed
add ifndef INFESTED_DLL for hudCloseCaption definition
1 parent 14f807f commit 4b1b8d2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/game/client/hud_closecaption.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2883,7 +2883,9 @@ void OnCaptionLanguageChanged( IConVar *pConVar, const char *pOldString, float f
28832883
char uilanguage[ 64 ];
28842884
engine->GetUILanguage( uilanguage, sizeof( uilanguage ) );
28852885

2886+
#ifndef INFESTED_DLL
28862887
CHudCloseCaption *hudCloseCaption = GET_FULLSCREEN_HUDELEMENT( CHudCloseCaption );
2888+
#endif
28872889

28882890
// If it's not the default, load the language on top of the user's default language
28892891
if ( Q_strlen( var.GetString() ) > 0 && Q_stricmp( var.GetString(), uilanguage ) )

0 commit comments

Comments
 (0)