Fixed issue where the resource child classes could not be found when looking for best resource category (on frog)

This commit is contained in:
Cekis
2018-03-23 16:00:31 -07:00
committed by CekisSWG
parent 68f653cc83
commit ed5d8a64b8
@@ -2320,6 +2320,10 @@ public class terminal_character_builder extends script.base_script
location loc = getLocation(player);
String planet = "current";
String[] resourceList = getResourceChildClasses(RESOURCE_BASE_TYPES[idx]);
if(resourceList == null){
LOG("frog-bestResource", "Could not get child classes for resource (" + RESOURCE_BASE_TYPES[idx] + ")");
return SCRIPT_CONTINUE;
}
int goodResources = 0;
for (String resource : resourceList)
{