From 71ec25a4a55c09a3ce273de7661cceea4c5afa5e Mon Sep 17 00:00:00 2001 From: godric3 Date: Sat, 24 Aug 2024 13:34:22 +0200 Subject: [PATCH] make sonar happier --- mapeditor/inspector/inspector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapeditor/inspector/inspector.cpp b/mapeditor/inspector/inspector.cpp index ac387f51d..d2d8c87bc 100644 --- a/mapeditor/inspector/inspector.cpp +++ b/mapeditor/inspector/inspector.cpp @@ -475,7 +475,7 @@ void Inspector::updateProperties() addProperty("TypeName", obj->typeName); addProperty("SubTypeName", obj->subTypeName); - if(!dynamic_cast(obj) && obj->ID != Obj::HERO_PLACEHOLDER) + if(obj->ID != Obj::HERO_PLACEHOLDER && !dynamic_cast(obj)) { auto factory = VLC->objtypeh->getHandlerFor(obj->ID, obj->subID); addProperty("IsStatic", factory->isStaticObject());