فهرست منبع

lib/mapObjects/CGPandoraBox.cpp: Identical sub-expressions on both sides of operator "||".

Identical expressions should not be used on both sides of a binary operator
Alexander Wilms 2 سال پیش
والد
کامیت
03835236fb
1فایلهای تغییر یافته به همراه3 افزوده شده و 4 حذف شده
  1. 3 4
      lib/mapObjects/CGPandoraBox.cpp

+ 3 - 4
lib/mapObjects/CGPandoraBox.cpp

@@ -277,11 +277,10 @@ void CGPandoraBox::serializeJsonOptions(JsonSerializeFormat & handler)
 		|| vinfo.reward.heroExperience
 		|| vinfo.reward.manaDiff
 		|| vinfo.reward.resources.nonZero()
-		|| !vinfo.reward.bonuses.empty()
-		|| !vinfo.reward.artifacts.empty()
-		|| !vinfo.reward.secondary.empty()
 		|| !vinfo.reward.artifacts.empty()
-		|| !vinfo.reward.creatures.empty();
+		|| !vinfo.reward.bonuses.empty()
+		|| !vinfo.reward.creatures.empty()
+		|| !vinfo.reward.secondary.empty();
 		
 		if(hasSomething)
 			configuration.info.push_back(vinfo);