mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Fixes warning about usage of unused variable
This commit is contained in:
@@ -226,7 +226,7 @@ void CGPandoraBox::serializeJsonOptions(JsonSerializeFormat & handler)
|
|||||||
handler.serializeInt("experience", vinfo.reward.heroExperience, 0);
|
handler.serializeInt("experience", vinfo.reward.heroExperience, 0);
|
||||||
handler.serializeInt("mana", vinfo.reward.manaDiff, 0);
|
handler.serializeInt("mana", vinfo.reward.manaDiff, 0);
|
||||||
|
|
||||||
int val;
|
int val = 0;
|
||||||
handler.serializeInt("morale", val, 0);
|
handler.serializeInt("morale", val, 0);
|
||||||
if(val)
|
if(val)
|
||||||
vinfo.reward.bonuses.emplace_back(BonusDuration::ONE_BATTLE, BonusType::MORALE, BonusSource::OBJECT_INSTANCE, val, BonusSourceID(id));
|
vinfo.reward.bonuses.emplace_back(BonusDuration::ONE_BATTLE, BonusType::MORALE, BonusSource::OBJECT_INSTANCE, val, BonusSourceID(id));
|
||||||
|
|||||||
Reference in New Issue
Block a user