summaryrefslogtreecommitdiff
path: root/tools/skilldbconverter.php
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-07-09 18:21:07 +0200
committerHaru <haru@dotalux.com>2016-07-09 18:21:07 +0200
commitaa32efcfa156ae219b650888711d09d50fc311d1 (patch)
tree509dfe8f28afdc80f2df2a4603c2c5c88e76d345 /tools/skilldbconverter.php
parent518d71c285860ac2b2858a956a3e0ec0474deae3 (diff)
downloadhercules-aa32efcfa156ae219b650888711d09d50fc311d1.tar.gz
hercules-aa32efcfa156ae219b650888711d09d50fc311d1.tar.bz2
hercules-aa32efcfa156ae219b650888711d09d50fc311d1.tar.xz
hercules-aa32efcfa156ae219b650888711d09d50fc311d1.zip
Fixed a skilldb conversion error when an item is missing from the item database
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'tools/skilldbconverter.php')
-rw-r--r--tools/skilldbconverter.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/skilldbconverter.php b/tools/skilldbconverter.php
index a4e03aecb..719cf2c4e 100644
--- a/tools/skilldbconverter.php
+++ b/tools/skilldbconverter.php
@@ -400,7 +400,7 @@ while(!feof($skmain)) {
while (isset($items) && isset($items[$it])) {
if ($constants && $itemID) {
$itkey = array_search($items[$it], $itemdb['ID']);
- if($itkey == 0) $itemname = "ID".$itemID;
+ if($itkey == 0) $itemname = "ID".$items[$it];
else $itemname = $itemdb['name'][$itkey];
$putsk .= "\t\t\t".trim($itemname).": ".leveled($itemamt, $max, $id, 2)."\n";
} else if (intval($itemID)) {