Skip to content

Commit

Permalink
[HaCreator] Fix nullpointerexception MapBrowser
Browse files Browse the repository at this point in the history
  • Loading branch information
lastbattle committed Apr 4, 2022
1 parent ca10d1d commit 3cd4637
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HaCreator/CustomControls/MapBrowser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void InitializeMaps(bool special)
for (int i = 0; i < 20; i++) // Not exceeding 20 logins yet.
{
string imageName = "MapLogin" + (i == 0 ? "" : i.ToString()) + ".img";
WzObject mapLogin = Program.WzManager["ui"][imageName];
WzObject mapLogin = Program.WzManager["ui"]?[imageName];
if (mapLogin == null)
break;
mapLogins.Add(imageName);
Expand Down

0 comments on commit 3cd4637

Please sign in to comment.