Skip to content

Commit

Permalink
Fix command menu text not being localized
Browse files Browse the repository at this point in the history
  • Loading branch information
SamVanheer committed Jan 29, 2022
1 parent 063b8a5 commit 37c491d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cl_dll/vgui_TeamFortressViewport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -766,8 +766,8 @@ int TeamFortressViewport::CreateCommandMenu(const char* menuFile, bool direction

// Get the button text
pfile = gEngfuncs.COM_ParseFile(pfile, token);
strncpy(cText, token, 32);
cText[31] = '\0';

CHudTextMessage::LocaliseTextString(token, cText, sizeof(cText));

// save off the last button text we've come across (for error reporting)
strcpy(szLastButtonText, cText);
Expand Down

0 comments on commit 37c491d

Please sign in to comment.