From 0f6a7648b41d61480daa65a86e95e105aa76cf95 Mon Sep 17 00:00:00 2001 From: izarooni Date: Thu, 16 Jul 2020 15:15:32 -0600 Subject: [PATCH] Fixed mob images not showing --- WzVisualizer/GUI/Form1.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WzVisualizer/GUI/Form1.cs b/WzVisualizer/GUI/Form1.cs index bcd77a0..34d6995 100644 --- a/WzVisualizer/GUI/Form1.cs +++ b/WzVisualizer/GUI/Form1.cs @@ -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");