Fixed kg and g unit commodities not being removed when player ship was being replaced or when a new one was bought and excess kg and g quantities beyond station's capacity remained unsold during the cargo selling phase.

master
AnotherCommander 2020-07-27 20:23:20 +02:00
parent 610929409b
commit d1ab638927
1 changed files with 3 additions and 7 deletions

View File

@ -1882,13 +1882,9 @@ static NSMutableDictionary *currentShipyard = nil;
- (void) newShipCommonSetup:(NSString *)shipKey yardInfo:(NSDictionary *)ship_info baseInfo:(NSDictionary *)ship_base_dict
{
if (current_cargo)
{
// Zero out our manifest.
[shipCommodityData removeAllGoods];
current_cargo = 0;
}
// Zero out our manifest.
[shipCommodityData removeAllGoods];
current_cargo = 0;
// drop all passengers
[passengers removeAllObjects];