mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-09-26 12:13:02 -04:00
Fixed null pointer issue happening on the frog when looking for best resource for given category.
This commit is contained in:
@@ -2321,13 +2321,9 @@ public class terminal_character_builder extends script.base_script
|
||||
String planet = "current";
|
||||
String[] resourceList = getResourceChildClasses(RESOURCE_BASE_TYPES[idx]);
|
||||
int goodResources = 0;
|
||||
for (int i = 0; i < resourceList.length; ++i)
|
||||
for (String resource : resourceList)
|
||||
{
|
||||
if (!hasResourceType(resourceList[i]))
|
||||
{
|
||||
resourceList[i] = null;
|
||||
}
|
||||
else
|
||||
if (hasResourceType(resource))
|
||||
{
|
||||
++goodResources;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user