From 4b4f4702c40052e0b1fe868d03264656a06eb675 Mon Sep 17 00:00:00 2001 From: Vincent Thibault Date: Tue, 29 Dec 2015 21:15:25 +0100 Subject: [PATCH] Fixed converter tool bug --- src/DB/DBManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DB/DBManager.js b/src/DB/DBManager.js index 629546d..fde5300 100644 --- a/src/DB/DBManager.js +++ b/src/DB/DBManager.js @@ -499,8 +499,8 @@ define(function(require) var item = ItemTable[itemid] || unknownItem; if (!item._decoded) { - item.identifiedDescriptionName = item.identifiedDescriptionName ? TextEncoding.decodeString(item.identifiedDescriptionName.join('\n')) : ''; - item.unidentifiedDescriptionName = item.unidentifiedDescriptionName ? TextEncoding.decodeString(item.unidentifiedDescriptionName.join('\n')) : ''; + item.identifiedDescriptionName = (item.identifiedDescriptionName && item.identifiedDescriptionName instanceof Array) ? TextEncoding.decodeString(item.identifiedDescriptionName.join('\n')) : ''; + item.unidentifiedDescriptionName = (item.unidentifiedDescriptionName && item.unidentifiedDescriptionName instanceof Array) ? TextEncoding.decodeString(item.unidentifiedDescriptionName.join('\n')) : ''; item.identifiedDisplayName = TextEncoding.decodeString(item.identifiedDisplayName); item.unidentifiedDisplayName = TextEncoding.decodeString(item.unidentifiedDisplayName); item.prefixNameTable = TextEncoding.decodeString(item.prefixNameTable || '');