Fixed overflow when buying ship in the shipyard.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1654 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
c6302e5e77
commit
c572512be2
@ -1411,7 +1411,7 @@ static NSMutableDictionary* currentShipyard = nil;
|
||||
// contracts stay the same, so if you default - tough!
|
||||
// okay we need to switch the model used, lots of the stats, and add all the extras
|
||||
// pay over the mazoolah
|
||||
credits -= 10 * (price - trade_in);
|
||||
credits -= 10 * price - trade_in;
|
||||
|
||||
// change ship_desc
|
||||
// TODO: detect brokenness here.
|
||||
|
Loading…
x
Reference in New Issue
Block a user