ExOlympiadMyRankingInfo default values for hero counts.
This commit is contained in:
parent
bc72e5021d
commit
c3524035b2
@ -135,8 +135,8 @@ public class ExOlympiadMyRankingInfo implements IClientOutgoingPacket
|
||||
if (Hero.getInstance().getCompleteHeroes().containsKey(_player.getObjectId()))
|
||||
{
|
||||
final StatSet hero = Hero.getInstance().getCompleteHeroes().get(_player.getObjectId());
|
||||
heroCount = hero.getInt("count");
|
||||
legendCount = hero.getInt("legend_count");
|
||||
heroCount = hero.getInt("count", 0);
|
||||
legendCount = hero.getInt("legend_count", 0);
|
||||
}
|
||||
|
||||
packet.writeD(year); // Year
|
||||
|
@ -135,8 +135,8 @@ public class ExOlympiadMyRankingInfo implements IClientOutgoingPacket
|
||||
if (Hero.getInstance().getCompleteHeroes().containsKey(_player.getObjectId()))
|
||||
{
|
||||
final StatSet hero = Hero.getInstance().getCompleteHeroes().get(_player.getObjectId());
|
||||
heroCount = hero.getInt("count");
|
||||
legendCount = hero.getInt("legend_count");
|
||||
heroCount = hero.getInt("count", 0);
|
||||
legendCount = hero.getInt("legend_count", 0);
|
||||
}
|
||||
|
||||
packet.writeD(year); // Year
|
||||
|
Loading…
Reference in New Issue
Block a user