Closed UltraJohn closed 1 year ago
Fix NRE for AllScienceSubjectsByBiomeExperiment() when parsing a biome that is encapulated in [] in a contract pack cfg.
In this case I was looking at a contract pack called RAD https://github.com/Morphisor244/Research-Advancement-Division/blob/main/GameData/ContractPacks/RAD/RAD_LocalFlight.cfg
Line 68: scienceSubjectsTemp1 = AllScienceSubjectsByBiomeExperiment([@biome1], @experiments1) would throw an error if @biome1 was null inside the [] brackets.
Fix NRE for AllScienceSubjectsByBiomeExperiment() when parsing a biome that is encapulated in [] in a contract pack cfg.
In this case I was looking at a contract pack called RAD https://github.com/Morphisor244/Research-Advancement-Division/blob/main/GameData/ContractPacks/RAD/RAD_LocalFlight.cfg
Line 68: scienceSubjectsTemp1 = AllScienceSubjectsByBiomeExperiment([@biome1], @experiments1) would throw an error if @biome1 was null inside the [] brackets.