Skip to content

Commit

Permalink
Fixed mob images not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
izarooni committed Jul 16, 2020
1 parent 7ab8e42 commit 0f6a764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WzVisualizer/GUI/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private void AddGridRow(DataGridView grid, object wzObject) {
name = StringUtility.GetNPC(id);
} else if (image.WzFileParent.Name.StartsWith("Mob")) { // icon path like: '{ID}/(move|stand|fly)/0'
name = StringUtility.GetMob(id);
entityIcon = (entityIcon == null) ? image.GetFromPath("fly/0") ?? image.GetFromPath("move/0") : null; // attempt to get image of the monster
if (entityIcon == null) entityIcon = image.GetFromPath("fly/0") ?? image.GetFromPath("move/0"); // attempt to get image of the monster
} else if (image.WzFileParent.Name.StartsWith("Reactor")) {
name = image.GetFromPath("action")?.WzValue.ToString();
entityIcon = image.GetFromPath("0/0");
Expand Down

0 comments on commit 0f6a764

Please sign in to comment.