From a3b60bf829079b6f5e4e7a6fffed1b4af7aaefa5 Mon Sep 17 00:00:00 2001 From: nordsoft Date: Sat, 16 Sep 2023 14:30:25 +0200 Subject: [PATCH] Fix warning --- lib/mapObjects/CGPandoraBox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mapObjects/CGPandoraBox.cpp b/lib/mapObjects/CGPandoraBox.cpp index 1ddf2d997..4fa3e50df 100644 --- a/lib/mapObjects/CGPandoraBox.cpp +++ b/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); }