Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-10-28 20:52:33 +0000
committerStijn Buys <ingar@osirion.org>2012-10-28 20:52:33 +0000
commitb5d81a70cfd675bd57c5b9f2b7c181fa17b44df0 (patch)
treece306c6a7fcd67bf3969329d057daabd1bcae124 /src/game
parente6ccc94ca525a482ea540a634752cd311cb5bd98 (diff)
Correct a bug where a dropped mine was not removed from the inventory.
Diffstat (limited to 'src/game')
-rw-r--r--src/game/base/game.cc2
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());
}