From 98783a663d50c7601613b993cb9afa4129480f38 Mon Sep 17 00:00:00 2001 From: Zero Fanker Date: Sat, 25 May 2024 09:36:30 -0400 Subject: [PATCH] fixed an issue that caused by Ini refactor when loading voxel turret . --- MissionEditor/Loading.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MissionEditor/Loading.cpp b/MissionEditor/Loading.cpp index faad312..8687481 100644 --- a/MissionEditor/Loading.cpp +++ b/MissionEditor/Loading.cpp @@ -1372,7 +1372,7 @@ BOOL CLoading::LoadUnitGraphic(const CString& lpUnittype) if (bStructure && turretanim_name.GetLength() > 0 && !rules.GetBool(image, "TurretAnimIsVoxel")) { turretanim_filename = turretanim_name + ".shp"; auto const& imageID = art.GetString(turretanim_name, "Image"); - if (imageID.IsEmpty()) { + if (!imageID.IsEmpty()) { turretanim_filename = imageID + ".shp"; }