From 64d308402d04457b254a246ce47879a04499e92f Mon Sep 17 00:00:00 2001 From: Ishotihadus Date: Sun, 15 Jul 2018 00:17:51 +0900 Subject: [PATCH] improve stability of mikunyan-image --- exe/mikunyan-image | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exe/mikunyan-image b/exe/mikunyan-image index 7f18383..8480615 100755 --- a/exe/mikunyan-image +++ b/exe/mikunyan-image @@ -63,8 +63,8 @@ assets.each do |asset| unless textures[tex_id] tex_obj = asset.parse_object(tex_id) if tex_obj - textures[tex_id] = Mikunyan::ImageDecoder.decode_object(tex_obj) if tex_obj - json[tex_id] = {:name => tex_obj.m_Name.value, :width => textures[tex_id].width, :height => textures[tex_id].height, :path_id => tex_id, :sprites => []} + textures[tex_id] = Mikunyan::ImageDecoder.decode_object(tex_obj) + json[tex_id] = {:name => tex_obj.m_Name.value, :width => textures[tex_id].width, :height => textures[tex_id].height, :path_id => tex_id, :sprites => []} if textures[tex_id] end end