mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
ItemList/ExtendedCost
* restore internal list pointer after using iterator get extended costs
This commit is contained in:
@@ -88,6 +88,8 @@ class ItemList extends BaseType
|
||||
if ($this->error)
|
||||
return [];
|
||||
|
||||
$idx = $this->id;
|
||||
|
||||
if (empty($this->vendors))
|
||||
{
|
||||
$itemz = [];
|
||||
@@ -257,6 +259,9 @@ class ItemList extends BaseType
|
||||
unset($result[$itemId]);
|
||||
}
|
||||
|
||||
// restore internal index;
|
||||
$this->getEntry($idx);
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user