Skip to content

Commit

Permalink
Fix: Items in "None" bay were doubled on display
Browse files Browse the repository at this point in the history
Fixed a bug causing all items in the "None" bay (inventory flag 0) to be
displayed with their quantity doubled, causing on-the-fly calculations to
be off by a factor of 2.
This was a DISPLAY BUG only, the database is NOT affacted.
  • Loading branch information
Salvoxia committed Jul 24, 2014
1 parent 50a1106 commit 2752cd4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions common/includes/class.itemlist.php
Expand Up @@ -111,15 +111,13 @@ function execute()
."and itd_kll_id in ("
.implode(',', $this->destroyedIDarray).") "
."left join kb3_item_locations itl "
."on (itd.itd_itl_id = itl.itl_flagID "
."or (itd.itd_itl_id = 0 and itl.itl_flagID = 1))";
."on (itd.itd_itl_id = itl.itl_flagID )";
} else if (count($this->droppedIDarray)) {
$sql .= "join kb3_items_dropped itd "
."on inv.typeID = itd_itm_id and itd_kll_id in ("
.implode(',', $this->droppedIDarray).") "
."left join kb3_item_locations itl "
."on (itd.itd_itl_id = itl.itl_flagID "
."or (itd.itd_itl_id = 0 and itl.itl_flagID = 1)) ";
."on (itd.itd_itl_id = itl.itl_flagID ) ";
} else {
$sql .= "where inv.typeID in (".implode(',', $this->itemarray).") ";
}
Expand Down

0 comments on commit 2752cd4

Please sign in to comment.