mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-01-15 23:04:31 -05:00
Fixed broken spawner text when spawner file contains blank entries
This commit is contained in:
@@ -60,7 +60,7 @@ public class spawner_area extends script.base_script
|
||||
if (dataTableOpen(strFileName))
|
||||
{
|
||||
String[] strSpawns = dataTableGetStringColumnNoDefaults(strFileName, "strItem");
|
||||
float[] fltSizes = dataTableGetFloatColumn(strFileName, "fltSize");
|
||||
float[] fltSizes = dataTableGetFloatColumnNoDefaults(strFileName, "fltSize");
|
||||
if (strSpawns == null || strSpawns.length == 0)
|
||||
{
|
||||
setName(self, "Mangled spawner. strFileName is " + strFileName + " I couldnt find any spawns in that file.");
|
||||
|
||||
Reference in New Issue
Block a user