added GetLangR, which doesn't construct a CLang object when not found;
GetDef now uses GetLangR, so when users set their language to an invalid value, no such language is created.
This commit is contained in:
@@ -154,6 +154,8 @@ class CLangMngr
|
||||
// Get a lang object (construct if needed)
|
||||
CLang * GetLang(const char *name);
|
||||
|
||||
CLang * GetLangR(const char *name);
|
||||
|
||||
// Current global client-id for functions like client_print with first parameter 0
|
||||
int m_CurGlobId;
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user