diff options
author | Stijn Buys <ingar@osirion.org> | 2012-10-28 20:52:33 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-10-28 20:52:33 +0000 |
commit | b5d81a70cfd675bd57c5b9f2b7c181fa17b44df0 (patch) | |
tree | ce306c6a7fcd67bf3969329d057daabd1bcae124 /src/game/base | |
parent | e6ccc94ca525a482ea540a634752cd311cb5bd98 (diff) |
Correct a bug where a dropped mine was not removed from the inventory.
Diffstat (limited to 'src/game/base')
-rw-r--r-- | src/game/base/game.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/base/game.cc b/src/game/base/game.cc index b6cacde..cebbe01 100644 --- a/src/game/base/game.cc +++ b/src/game/base/game.cc @@ -1021,7 +1021,7 @@ void Game::func_drop(core::Player *player, const std::string &args) spacemine->reset(); // remove mine from inventory - item->set_amount(1); + item->dec_amount(1); if (item->amount() == 0) { ship->inventory()->erase(item->id()); } |