From 11c24c2d7b079008d5a56e33c0c6f58b672ed6c1 Mon Sep 17 00:00:00 2001 From: Allanis Date: Wed, 14 May 2014 20:53:31 +0100 Subject: [PATCH] [Fix] Incorrect check. --- src/player.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/player.c b/src/player.c index e4c2c0b..e324cb6 100644 --- a/src/player.c +++ b/src/player.c @@ -1127,7 +1127,7 @@ void player_renderGUI(double dt) { gl_print(&gl_smallFont, gui.misc.x + 8, j, &cConsole, "Free:"); - i = gl_printWidth(&gl_smallFont, "%d", player->ship->cap_cargo); + i = gl_printWidth(&gl_smallFont, "%d", pilot_cargoFree(player)); gl_print(&gl_smallFont, gui.misc.x + gui.misc.w - 8 - i, j, NULL, "%d", pilot_cargoFree(player));