diff options
author | Haru <haru@dotalux.com> | 2016-07-09 18:21:07 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-07-09 18:21:07 +0200 |
commit | aa32efcfa156ae219b650888711d09d50fc311d1 (patch) | |
tree | 509dfe8f28afdc80f2df2a4603c2c5c88e76d345 | |
parent | 518d71c285860ac2b2858a956a3e0ec0474deae3 (diff) | |
download | hercules-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>
-rw-r--r-- | tools/skilldbconverter.php | 2 |
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)) { |