mirror of
https://github.com/EQEmu/Server.git
synced 2026-12-01 08:12:17 +00:00
Fix for Inventory::_HasItemByUse(bucket) using the parent container when searching for bag container items
This commit is contained in:
1 parent
5c56929a23
commit
4b0f5064f6
2 files changed
+5
-2
No files matched your search
+1
-1
@@ -1259,7 +1259,7 @@ int16 Inventory::_HasItemByUse(std::map<int16, ItemInst*>& bucket, uint8 use, ui
|
||||
|
||||
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;
|
||||
if (bag_inst == nullptr) { continue; }
|
||||
|
||||
|
||||
Reference in new issue
Block a user