[Fix] Incorrect check.

This commit is contained in:
Allanis 2014-05-14 20:53:31 +01:00
parent b4487e9af8
commit 11c24c2d7b

View File

@ -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));