From 1ab4ad1b7a81959a8697e70e6af4d378d3056b7c Mon Sep 17 00:00:00 2001 From: Allanis Date: Mon, 10 Mar 2014 00:06:24 +0000 Subject: [PATCH] [Fix] So, when buying outfits, you may have noticed free cargo space goes mental! Not anymore! :D --- src/pilot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pilot.c b/src/pilot.c index f917f58..85d20c8 100644 --- a/src/pilot.c +++ b/src/pilot.c @@ -1173,8 +1173,8 @@ static void pilot_calcCargo(Pilot* pilot) { q = pilot_cargoUsed(pilot); - pilot->cargo_free -= q; /* Reduce space left. */ - pilot->solid->mass = pilot->ship->mass + q; /* Cargo affects weight. */ + pilot->cargo_free = pilot->ship->cap_cargo - q; /* Reduce space left. */ + pilot->solid->mass = pilot->ship->mass + q; /* Cargo affects weight. */ } /**