summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-02-28 01:56:26 +0100
committerHaru <haru@dotalux.com>2015-02-28 01:56:26 +0100
commitef6b4359e75f8da1ad175418058bcee0f965788f (patch)
tree18e1e3fbb27e4afede666ab18f0dd2ab87c44f92 /src
parentc13095dc4b1308a7e3391dc93a1c678670a80ed3 (diff)
downloadhercules-ef6b4359e75f8da1ad175418058bcee0f965788f.tar.gz
hercules-ef6b4359e75f8da1ad175418058bcee0f965788f.tar.bz2
hercules-ef6b4359e75f8da1ad175418058bcee0f965788f.tar.xz
hercules-ef6b4359e75f8da1ad175418058bcee0f965788f.zip
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 <haru@dotalux.com>
Diffstat (limited to 'src')
-rw-r--r--src/map/script.c3
1 files changed, 3 insertions, 0 deletions
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);