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