Skip to content

Commit

Permalink
fix: remove ressources
Browse files Browse the repository at this point in the history
  • Loading branch information
AxelF44 committed Jun 22, 2024
1 parent 2fc0a64 commit 7f07a10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/src/GUIUpdater/GUIUpdater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ void Gui::GUIUpdater::updatePlayerRessourceDropping(const std::vector<std::strin
for (auto &player : team.getPlayers()) {
if (player.getId() == args[0]) {
player.setState(Gui::Player::PlayerState::DROP);
player.inventory.addResource(args[1], 1);
player.inventory.removeResource(args[1], 1);
_gameData.get()->getTile(player.getPosition().first, player.getPosition().second).inventory.addResource(args[1], 1);
return;
}
Expand Down

0 comments on commit 7f07a10

Please sign in to comment.