Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
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 a3d9899..1202fe6 100644
--- a/src/game/base/game.cc
+++ b/src/game/base/game.cc
@@ -300,7 +300,7 @@ void Game::func_give(core::Player *player, const std::string &args)
return;
}
- const int max = player->control()->inventory()->capacity_available() / cargo->volume();
+ const int max = (int)floorf(player->control()->inventory()->capacity_available() / cargo->volume());
if (amount < 0 ) {
amount = max;
}