Fix Awards being wrong

This commit is contained in:
Bluzume 2021-11-11 20:39:46 -05:00
parent 485890c0c8
commit 2d58e51e9a
3 changed files with 4 additions and 2 deletions

@ -1 +1 @@
Subproject commit eed8fcbfbb36646528e53e22873a50e196c16d60
Subproject commit 731175fef56355cf8ecf7e7e3a034d5fc3f0d258

View file

@ -21,6 +21,7 @@ namespace HISP.Player
public static AwardEntry GetAwardById(int id)
{
//99% fo the time this will work
try
{
AwardEntry award = GlobalAwardList[id - 1];
@ -29,6 +30,7 @@ namespace HISP.Player
}
catch (Exception) { };
// Incase it doesnt...
foreach(AwardEntry award in GlobalAwardList)
{
if (award.Id == id)

View file

@ -416,7 +416,7 @@ namespace HISP.Server
{
Award.AwardEntry award = new Award.AwardEntry();
award.Id = i + 1;
award.Id = gameData.award_list[i].id;
award.Sort = gameData.award_list[i].sort_by;
award.Title = gameData.award_list[i].title;
award.IconId = gameData.award_list[i].icon_id;