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;
|
int line = 0;
|
||||||
char buf[256];
|
char buf[256];
|
||||||
|
|
||||||
if (file==NULL || *file==0){
|
if (file==NULL || *file==0)
|
||||||
LOG.printf("! LoadLanguage() is called with empty file name!");
|
{
|
||||||
#if defined(GFTRK_ENABLE)
|
|
||||||
__gftrk_log();
|
|
||||||
#endif
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
gfile fp(AddPath(CFG->goldpath, file), "rt", CFG->sharemode);
|
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));
|
CFG->grp.GetItm(GRP_XLATIMPORT, adat->xlatimport, sizeof(adat->xlatimport));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(adat->loadlanguage)
|
if(adat->loadlanguage && *adat->loadlanguage)
|
||||||
LoadLanguage(adat->loadlanguage);
|
LoadLanguage(adat->loadlanguage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user