aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/client/hud_vote.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mp/src/game/client/hud_vote.cpp')
-rw-r--r--mp/src/game/client/hud_vote.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/mp/src/game/client/hud_vote.cpp b/mp/src/game/client/hud_vote.cpp
index 55b8f389..659669a0 100644
--- a/mp/src/game/client/hud_vote.cpp
+++ b/mp/src/game/client/hud_vote.cpp
@@ -662,7 +662,8 @@ void CVoteSetupDialog::OnItemSelected( vgui::Panel *panel )
for ( int index = 0; index < m_VoteIssuesPopFiles.Count(); index++ )
{
// Don't show the current pop file
- if ( TFObjectiveResource()->GetMvMPopFileName() == '\0' )
+ const char *pszPopFileName = TFObjectiveResource()->GetMvMPopFileName();
+ if ( !pszPopFileName || !pszPopFileName[0] )
{
// Use the map name
char szShortMapName[ MAX_MAP_NAME ];