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:
Pavol Marko
2004-08-21 21:08:30 +00:00
parent 2f3950b548
commit b63ae4eed8
2 changed files with 18 additions and 3 deletions

View File

@@ -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: