From ef6b4359e75f8da1ad175418058bcee0f965788f Mon Sep 17 00:00:00 2001 From: Haru Date: Sat, 28 Feb 2015 01:56:26 +0100 Subject: Skipped translations in minimal (script-checker) mode - Translations aren't used in script-checker mode, so there is no point loading them. - Fixes an error message caused by a missing default language when starting in script-checker mode. - Special thanks to Ind, jaBote. Signed-off-by: Haru --- src/map/script.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/map/script.c b/src/map/script.c index d5cf58946..c01e8c391 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -4682,6 +4682,9 @@ void script_load_translations(void) { int i, size; uint32 total = 0; uint8 lang_id = 0, k; + + if (map->minimal) // No translations in minimal mode + return; script->translation_db = strdb_alloc(DB_OPT_DUP_KEY, NAME_LENGTH*2+1); -- cgit v1.2.3-70-g09d2