mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-08 22:26:51 +02:00
Do not send empty packets changing primary skills by 0 points
This commit is contained in:
@@ -116,7 +116,8 @@ void Rewardable::Interface::grantRewardBeforeLevelup(const Rewardable::VisitInfo
|
|||||||
}
|
}
|
||||||
|
|
||||||
for(int i=0; i< info.reward.primary.size(); i++)
|
for(int i=0; i< info.reward.primary.size(); i++)
|
||||||
cb->changePrimSkill(hero, static_cast<PrimarySkill>(i), info.reward.primary[i], false);
|
if (info.reward.primary[i] != 0)
|
||||||
|
cb->changePrimSkill(hero, static_cast<PrimarySkill>(i), info.reward.primary[i], false);
|
||||||
|
|
||||||
TExpType expToGive = 0;
|
TExpType expToGive = 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user