mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-03 11:12:25 +00:00
Fix for Inventory::_HasItemByUse(bucket) using the parent container when searching for bag container items
This commit is contained in:
parent
5c56929a23
commit
4b0f5064f6
@ -1,7 +1,10 @@
|
|||||||
EQEMu Changelog (Started on Sept 24, 2003 15:50)
|
EQEMu Changelog (Started on Sept 24, 2003 15:50)
|
||||||
-------------------------------------------------------
|
-------------------------------------------------------
|
||||||
|
== 01/20/2015 ==
|
||||||
|
Uleat: Fix for Inventory::_HasItemByUse(bucket) using the parent container when searching for bag container items.
|
||||||
|
|
||||||
== 01/19/2015 ==
|
== 01/19/2015 ==
|
||||||
Uleat: Changed 'enum EQClientVersion' to 'enum class ClientVersion.' Other light modifications were made to accomodate this namespace. Added 'RoF2' to the lua client version enumeration.
|
Uleat: Changed 'enum EQClientVersion' to 'enum class ClientVersion.' Other light modifications were made to accommodate this namespace. Added 'RoF2' to the lua client version enumeration.
|
||||||
|
|
||||||
== 01/15/2015 ==
|
== 01/15/2015 ==
|
||||||
Uleat: Attempted fix for elusive inventory bug:
|
Uleat: Attempted fix for elusive inventory bug:
|
||||||
|
|||||||
@ -1259,7 +1259,7 @@ int16 Inventory::_HasItemByUse(std::map<int16, ItemInst*>& bucket, uint8 use, ui
|
|||||||
|
|
||||||
if (!inst->IsType(ItemClassContainer)) { continue; }
|
if (!inst->IsType(ItemClassContainer)) { continue; }
|
||||||
|
|
||||||
for (auto bag_iter = bucket.begin(); bag_iter != bucket.end(); ++bag_iter) {
|
for (auto bag_iter = inst->_begin(); bag_iter != inst->_end(); ++bag_iter) {
|
||||||
auto bag_inst = bag_iter->second;
|
auto bag_inst = bag_iter->second;
|
||||||
if (bag_inst == nullptr) { continue; }
|
if (bag_inst == nullptr) { continue; }
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user