From a83a4a599c2e407832ef9bbe47bb8b8c07ce712a Mon Sep 17 00:00:00 2001 From: Hyper_ <40342021+NotHyper-474@users.noreply.github.com> Date: Mon, 28 Apr 2025 01:14:35 -0300 Subject: [PATCH] fix: Null-check MedalList's internal map --- source/funkin/api/newgrounds/Medals.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/funkin/api/newgrounds/Medals.hx b/source/funkin/api/newgrounds/Medals.hx index 984362473..0559a004f 100644 --- a/source/funkin/api/newgrounds/Medals.hx +++ b/source/funkin/api/newgrounds/Medals.hx @@ -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 = medalList.get(medal.getId()); @:privateAccess