Skip to content

Commit

Permalink
Check if WMO MGI2 exists first
Browse files Browse the repository at this point in the history
  • Loading branch information
Marlamin committed Aug 31, 2024
1 parent b47fe94 commit 06f8b6d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Controllers/ModelController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,13 @@ public string Info(int fileDataID)
returnString += "<tr>";
returnString += "<td><b>Group</b></td>";
returnString += "<td>Flags: " + group.flags + "</td>";
returnString += "<td>Flags2: " + wmo.groupInfo2[i].flags2 + "</td>";
returnString += "<td>'lodIndex' " + wmo.groupInfo2[i].lodIndex + "</td>";

if(wmo.groupInfo2 != null)
{
returnString += "<td>Flags2: " + wmo.groupInfo2[i].flags2 + "</td>";
returnString += "<td>'lodIndex' " + wmo.groupInfo2[i].lodIndex + "</td>";
}

returnString += "</tr>";
}

Expand Down

0 comments on commit 06f8b6d

Please sign in to comment.