From 88cdfb4b1f22d97d80fd3e3e6435c507a57f5319 Mon Sep 17 00:00:00 2001 From: Stephen Miller <56742918+StevenMiller123@users.noreply.github.com> Date: Sat, 7 Feb 2026 13:55:40 -0600 Subject: [PATCH] Fix assert (#4002) Just a typical day of me pushing something a month ago, nobody testing/reviewing it, then finding out it's broken when that code inevitably makes it into production. --- src/core/libraries/np/np_web_api_internal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/libraries/np/np_web_api_internal.cpp b/src/core/libraries/np/np_web_api_internal.cpp index 3c7557b72..3d6c7de86 100644 --- a/src/core/libraries/np/np_web_api_internal.cpp +++ b/src/core/libraries/np/np_web_api_internal.cpp @@ -457,7 +457,7 @@ s32 createRequest(s32 titleUserCtxId, const char* pApiGroup, const char* pPath, request_id--; } // Real library would hang if this assert fails. - ASSERT_MSG(request_id > user_ctx_id << 0x20, "Too many requests!"); + ASSERT_MSG(request_id <= (user_ctx_id << 0x20), "Too many requests!"); user_context->requests[request_id] = new OrbisNpWebApiRequest{}; auto& request = user_context->requests[request_id];