diff options
Diffstat (limited to 'src/game/localization.cpp')
| -rw-r--r-- | src/game/localization.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/game/localization.cpp b/src/game/localization.cpp index f78593b1..cf637eff 100644 --- a/src/game/localization.cpp +++ b/src/game/localization.cpp @@ -51,12 +51,18 @@ void LOCALIZATIONDATABASE::add_string(const char *org_str, const char *new_str) bool LOCALIZATIONDATABASE::load(const char *filename) { + // empty string means unload + if(filename[0] == 0) + { + strings.clear(); + return true; + } + LINEREADER lr; IOHANDLE io = io_open(filename, IOFLAG_READ); if(!io) return false; - dbg_msg("localization", "loaded '%s'", filename); strings.clear(); |