Skip to content

Commit

Permalink
hotfix: [] -> .at()
Browse files Browse the repository at this point in the history
  • Loading branch information
ISPlatonov committed Jan 29, 2024
1 parent f65de27 commit 6bb7cac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/Multiplayer/Multiplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6bb7cac

Please sign in to comment.