ItemList/ExtendedCost

* restore internal list pointer after using iterator get extended costs
This commit is contained in:
Sarjuuk
2021-10-13 00:20:25 +02:00
parent 35aca18346
commit b824bc54c2

View File

@@ -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;
}