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:
Nikos Barkas 2008-05-25 10:04:10 +00:00
parent c6302e5e77
commit c572512be2

View File

@ -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.