Browse Source

Fix warning

nordsoft 2 years ago
parent
commit
a3b60bf829
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/mapObjects/CGPandoraBox.cpp

+ 1 - 1
lib/mapObjects/CGPandoraBox.cpp

@@ -212,7 +212,7 @@ void CGPandoraBox::serializeJsonOptions(JsonSerializeFormat & handler)
 			for(int idx = 0; idx < reward.primary.size(); idx ++)
 			{
 				handler.serializeInt(NPrimarySkill::names[idx], reward.primary[idx], 0);
-				updateReward |= reward.primary[idx];
+				updateReward |= bool(reward.primary[idx]);
 			}
 			addReward(updateReward);
 		}