Correctly load main station market from save game

This commit is contained in:
cim 2013-12-08 12:50:01 +00:00
parent fe7bf609a9
commit dbcd7f00a9

View File

@ -562,12 +562,10 @@ static uint16_t PersonalityForCommanderDict(NSDictionary *dict);
// dockedStation is always the main station at this point;
// "localMarket" save key always refers to the main station (system) market
if (![dockedStation localMarket])
{
NSArray *market = [fileDic oo_arrayForKey:@"localMarket"];
if (market != nil) [dockedStation setLocalMarket:market];
else [dockedStation initialiseLocalMarketWithRandomFactor:market_rnd];
}
NSArray *market = [fileDic oo_arrayForKey:@"localMarket"];
if (market != nil) [dockedStation setLocalMarket:market];
else [dockedStation initialiseLocalMarketWithRandomFactor:market_rnd];
[self calculateCurrentCargo];
// Remember the savegame target, run js startUp.