Remove log message about empty file name in LoadLanguage() call
This commit is contained in:
parent
fd24231025
commit
d8f1559b72
@ -669,11 +669,8 @@ void LoadLanguage(const char* file)
|
||||
int line = 0;
|
||||
char buf[256];
|
||||
|
||||
if (file==NULL || *file==0){
|
||||
LOG.printf("! LoadLanguage() is called with empty file name!");
|
||||
#if defined(GFTRK_ENABLE)
|
||||
__gftrk_log();
|
||||
#endif
|
||||
if (file==NULL || *file==0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
gfile fp(AddPath(CFG->goldpath, file), "rt", CFG->sharemode);
|
||||
|
@ -233,7 +233,7 @@ void Area::InitData() {
|
||||
CFG->grp.GetItm(GRP_XLATIMPORT, adat->xlatimport, sizeof(adat->xlatimport));
|
||||
}
|
||||
|
||||
if(adat->loadlanguage)
|
||||
if(adat->loadlanguage && *adat->loadlanguage)
|
||||
LoadLanguage(adat->loadlanguage);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user