From c233e57079a2360c85c4ccc2cc5d158637cbfd98 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Tue, 29 Nov 2022 18:24:03 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Nordsoft91 --- client/battle/CBattleInterfaceClasses.cpp | 2 +- mapeditor/graphics.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/battle/CBattleInterfaceClasses.cpp b/client/battle/CBattleInterfaceClasses.cpp index 88c5ba103..a51ad59fb 100644 --- a/client/battle/CBattleInterfaceClasses.cpp +++ b/client/battle/CBattleInterfaceClasses.cpp @@ -765,7 +765,7 @@ void CStackQueue::update() int32_t CStackQueue::getSiegeShooterIconID() { - return owner->siegeH->town->town->faction->index; + return owner->siegeH->town->town->faction->index; } CStackQueue::StackBox::StackBox(CStackQueue * owner): diff --git a/mapeditor/graphics.cpp b/mapeditor/graphics.cpp index eaacdbbaa..77e5e289b 100644 --- a/mapeditor/graphics.cpp +++ b/mapeditor/graphics.cpp @@ -315,7 +315,7 @@ void Graphics::addImageListEntry(size_t index, size_t group, const std::string & if (!imageName.empty()) { JsonNode entry; - if ( group != 0) + if(group != 0) entry["group"].Integer() = group; entry["frame"].Integer() = index; entry["file"].String() = imageName;