Merge pull request #4871 from NotHyper-474/bugfix/initstate-spam-medal-crash-fix

[BUGFIX] Fix crash when spamming enter when opening game (properly this time)
This commit is contained in:
Eric
2025-05-02 14:21:21 -04:00
committed by GitHub
+2 -1
View File
@@ -44,7 +44,8 @@ class Medals
if (NewgroundsClient.instance.isLoggedIn())
{
var medalList = NewgroundsClient.instance.medals;
if (medalList == null) return;
@:privateAccess
if (medalList == null || medalList._map == null) return;
var medalData:Null<MedalData> = medalList.get(medal.getId());
@:privateAccess