mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
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
This commit is contained in:
parent
cc8cc11da3
commit
03835236fb
@ -277,11 +277,10 @@ void CGPandoraBox::serializeJsonOptions(JsonSerializeFormat & handler)
|
||||
|| vinfo.reward.heroExperience
|
||||
|| vinfo.reward.manaDiff
|
||||
|| vinfo.reward.resources.nonZero()
|
||||
|| !vinfo.reward.artifacts.empty()
|
||||
|| !vinfo.reward.bonuses.empty()
|
||||
|| !vinfo.reward.artifacts.empty()
|
||||
|| !vinfo.reward.secondary.empty()
|
||||
|| !vinfo.reward.artifacts.empty()
|
||||
|| !vinfo.reward.creatures.empty();
|
||||
|| !vinfo.reward.creatures.empty()
|
||||
|| !vinfo.reward.secondary.empty();
|
||||
|
||||
if(hasSomething)
|
||||
configuration.info.push_back(vinfo);
|
||||
|
Loading…
Reference in New Issue
Block a user