Remove log message about empty file name in LoadLanguage() call

This commit is contained in:
Stas Degteff 2007-04-03 19:17:42 +00:00
parent fd24231025
commit d8f1559b72
2 changed files with 3 additions and 6 deletions

View File

@ -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);

View File

@ -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);
}