mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-23 00:27:16 +00:00
Enforced const_interator returns on const_iterator return types in Inventory and ItemInst
This commit is contained in:
1 parent
b96e5a7f4d
commit
2bf2485b4c
7 files changed
+38
-35
No files matched your search
+1
-1
@@ -2618,7 +2618,7 @@ void command_peekinv(Client *c, const Seperator *sep)
|
||||
}
|
||||
else {
|
||||
int cursorDepth = 0;
|
||||
for (auto it = targetClient->GetInv().cursor_begin(); (it != targetClient->GetInv().cursor_end()); ++it, ++cursorDepth) {
|
||||
for (auto it = targetClient->GetInv().cursor_cbegin(); (it != targetClient->GetInv().cursor_cend()); ++it, ++cursorDepth) {
|
||||
inst_main = *it;
|
||||
item_data = (inst_main == nullptr) ? nullptr : inst_main->GetItem();
|
||||
linker.SetItemInst(inst_main);
|
||||
|
||||
Reference in new issue
Block a user