Fixed bug in awarding kg or g unit items while in-flight, resulting from the cargopods previous handling change (thanks Eric).

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3083 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Nikos Barkas 2010-03-28 14:58:29 +00:00
parent 4a05faff16
commit b937604e9a

View File

@ -6172,7 +6172,7 @@ static NSString *last_outfitting_key=nil;
OOCargoQuantity oldAmount = [self cargoQuantityForType:type];
OOCargoQuantity available = [self availableCargoSpace];
BOOL inPods = (unit == UNITS_TONS && [self status] != STATUS_DOCKED);
BOOL inPods = ([self status] != STATUS_DOCKED);
// check it against the max amount.
if (unit == UNITS_TONS && (available + oldAmount) < amount)