Skip to content

Commit 0f6a764

Browse files
committed
Fixed mob images not showing
1 parent 7ab8e42 commit 0f6a764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WzVisualizer/GUI/Form1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ private void AddGridRow(DataGridView grid, object wzObject) {
125125
name = StringUtility.GetNPC(id);
126126
} else if (image.WzFileParent.Name.StartsWith("Mob")) { // icon path like: '{ID}/(move|stand|fly)/0'
127127
name = StringUtility.GetMob(id);
128-
entityIcon = (entityIcon == null) ? image.GetFromPath("fly/0") ?? image.GetFromPath("move/0") : null; // attempt to get image of the monster
128+
if (entityIcon == null) entityIcon = image.GetFromPath("fly/0") ?? image.GetFromPath("move/0"); // attempt to get image of the monster
129129
} else if (image.WzFileParent.Name.StartsWith("Reactor")) {
130130
name = image.GetFromPath("action")?.WzValue.ToString();
131131
entityIcon = image.GetFromPath("0/0");

0 commit comments

Comments
 (0)