diff --git a/Controllers/ModelController.cs b/Controllers/ModelController.cs index 7ff2605..2f1b11b 100644 --- a/Controllers/ModelController.cs +++ b/Controllers/ModelController.cs @@ -38,8 +38,13 @@ public string Info(int fileDataID) returnString += ""; returnString += "Group"; returnString += "Flags: " + group.flags + ""; - returnString += "Flags2: " + wmo.groupInfo2[i].flags2 + ""; - returnString += "'lodIndex' " + wmo.groupInfo2[i].lodIndex + ""; + + if(wmo.groupInfo2 != null) + { + returnString += "Flags2: " + wmo.groupInfo2[i].flags2 + ""; + returnString += "'lodIndex' " + wmo.groupInfo2[i].lodIndex + ""; + } + returnString += ""; }