mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-31 00:15:54 -04:00
Fixed more stupid.
This commit is contained in:
@@ -1321,15 +1321,12 @@ public class loot extends script.base_script
|
||||
else
|
||||
{
|
||||
String[] strItems = dataTableGetStringColumnNoDefaults(strItemTable, strItemTypeHeader);
|
||||
if ((strItems != null) || (strItems.length > 0))
|
||||
if (strItems != null && strItems.length > 0)
|
||||
{
|
||||
String strLootToMake = strItems[rand(0, strItems.length - 1)];
|
||||
createLootItem(objContainer, strLootToMake, intLevel);
|
||||
boolMadeLoot = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
if (strRequiredItems != null && strRequiredItems.length > 0)
|
||||
|
||||
Reference in New Issue
Block a user