mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Fix infinite recursion
Bug introduced in recent commit 1d41b23a.
This commit is contained in:
parent
5bab1bc6af
commit
140270f426
@ -1030,6 +1030,9 @@ void LanguageChanged_f(IConVar* pConVar, const char* pOldString, float flOldValu
|
||||
{
|
||||
const char* pNewString = pConVarRef->GetString();
|
||||
|
||||
if (strcmp(pOldString, pConVarRef->GetString()) == NULL)
|
||||
return; // Same language.
|
||||
|
||||
if (!Localize_IsLanguageSupported(pNewString))
|
||||
{
|
||||
// if new text isn't valid but the old value is, reset the value
|
||||
|
Loading…
x
Reference in New Issue
Block a user