diff --git a/src/common/Multiplayer/Multiplayer.cpp b/src/common/Multiplayer/Multiplayer.cpp index bf3ca49..d16136f 100644 --- a/src/common/Multiplayer/Multiplayer.cpp +++ b/src/common/Multiplayer/Multiplayer.cpp @@ -115,7 +115,7 @@ namespace Multiplayer for (const auto& iter : player_data_pool[id].getInventory()) { size_t msg_number; - if (player_data.getInventory().count(iter.first) && player_data.getInventory()[iter.first] >= iter.second) + if (player_data.getInventory().count(iter.first) && player_data.getInventory().at(iter.first) >= iter.second) { // now it does nothing, // but it has to send