diff --git a/golded3/gclang.cpp b/golded3/gclang.cpp index 4c71fc2..1857b3e 100644 --- a/golded3/gclang.cpp +++ b/golded3/gclang.cpp @@ -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); diff --git a/golded3/gerand.cpp b/golded3/gerand.cpp index 09a8b79..7beed2a 100644 --- a/golded3/gerand.cpp +++ b/golded3/gerand.cpp @@ -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); }