From b5d81a70cfd675bd57c5b9f2b7c181fa17b44df0 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 28 Oct 2012 20:52:33 +0000 Subject: Correct a bug where a dropped mine was not removed from the inventory. --- src/game/base/game.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/base') 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()); } -- cgit v1.2.3