Trim value from ConVar among with the delimiter

Trim anything past the space/semicolon character as well, this is required for CCvar::FindVar(...).
This commit is contained in:
Kawe Mazidjatari 2022-11-11 01:19:49 +01:00
parent 24a4097cef
commit 525999be40

View File

@ -591,7 +591,7 @@ void CConsole::BuildSummary(string svConVar)
if (!svConVar.empty())
{
// Remove trailing space and/or semicolon before we call 'g_pCVar->FindVar(..)'.
StringRTrim(svConVar, " ;");
StringRTrim(svConVar, " ;", true);
if (const ConVar* pConVar = g_pCVar->FindVar(svConVar.c_str()))
{