ExOlympiadMyRankingInfo default values for hero counts.

This commit is contained in:
MobiusDevelopment 2020-06-01 12:43:49 +00:00
parent bc72e5021d
commit c3524035b2
2 changed files with 4 additions and 4 deletions

View File

@ -135,8 +135,8 @@ public class ExOlympiadMyRankingInfo implements IClientOutgoingPacket
if (Hero.getInstance().getCompleteHeroes().containsKey(_player.getObjectId())) if (Hero.getInstance().getCompleteHeroes().containsKey(_player.getObjectId()))
{ {
final StatSet hero = Hero.getInstance().getCompleteHeroes().get(_player.getObjectId()); final StatSet hero = Hero.getInstance().getCompleteHeroes().get(_player.getObjectId());
heroCount = hero.getInt("count"); heroCount = hero.getInt("count", 0);
legendCount = hero.getInt("legend_count"); legendCount = hero.getInt("legend_count", 0);
} }
packet.writeD(year); // Year packet.writeD(year); // Year

View File

@ -135,8 +135,8 @@ public class ExOlympiadMyRankingInfo implements IClientOutgoingPacket
if (Hero.getInstance().getCompleteHeroes().containsKey(_player.getObjectId())) if (Hero.getInstance().getCompleteHeroes().containsKey(_player.getObjectId()))
{ {
final StatSet hero = Hero.getInstance().getCompleteHeroes().get(_player.getObjectId()); final StatSet hero = Hero.getInstance().getCompleteHeroes().get(_player.getObjectId());
heroCount = hero.getInt("count"); heroCount = hero.getInt("count", 0);
legendCount = hero.getInt("legend_count"); legendCount = hero.getInt("legend_count", 0);
} }
packet.writeD(year); // Year packet.writeD(year); // Year