From daa7b5c04bf8f196f68c120b850f8b65d22eb480 Mon Sep 17 00:00:00 2001 From: kalaposfos13 <153381648+kalaposfos13@users.noreply.github.com> Date: Thu, 9 Apr 2026 20:43:27 +0200 Subject: [PATCH] Fix scePadResetLightBar for TV remotes (#4244) --- src/core/libraries/pad/pad.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/libraries/pad/pad.cpp b/src/core/libraries/pad/pad.cpp index ca759083b..cd5364dce 100644 --- a/src/core/libraries/pad/pad.cpp +++ b/src/core/libraries/pad/pad.cpp @@ -507,7 +507,8 @@ int PS4_SYSV_ABI scePadResetLightBar(s32 handle) { return ORBIS_PAD_ERROR_INVALID_HANDLE; } auto& controllers = *Common::Singleton::Instance(); - s32 colour_index = UserManagement.GetUserByPlayerIndex(handle)->user_color - 1; + auto u = UserManagement.GetUserByPlayerIndex(handle); + s32 colour_index = u ? u->user_color - 1 : 0; Input::Colour colour{255, 0, 0}; if (colour_index >= 0 && colour_index <= 3) { static constexpr Input::Colour colours[4]{