Fixed previous fix.

This commit is contained in:
AnotherCommander 2015-11-17 21:51:46 +01:00
parent 8c0156719a
commit 39363e5419

View File

@ -1386,7 +1386,7 @@ static JSBool ShipSetProperty(JSContext *context, JSObject *this, jsid propID, J
{ {
iValue = 0; iValue = 0;
} }
if ((OOCargoQuantity)iValue < [entity maxAvailableCargoSpace] - [entity availableCargoSpace]) else if ((OOCargoQuantity)iValue < [entity maxAvailableCargoSpace] - [entity availableCargoSpace])
{ {
iValue = [entity maxAvailableCargoSpace] - [entity availableCargoSpace]; iValue = [entity maxAvailableCargoSpace] - [entity availableCargoSpace];
} }