Browse Source

Apply suggestions from code review

Co-authored-by: Nordsoft91 <[email protected]>
Ivan Savenko 2 years ago
parent
commit
c233e57079
2 changed files with 2 additions and 2 deletions
  1. 1 1
      client/battle/CBattleInterfaceClasses.cpp
  2. 1 1
      mapeditor/graphics.cpp

+ 1 - 1
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):

+ 1 - 1
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;