mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
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:
parent
24a4097cef
commit
525999be40
@ -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()))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user