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.
This commit is contained in:
Stephen Miller 2026-02-07 13:55:40 -06:00 committed by GitHub
parent 1dc45ab6b3
commit 88cdfb4b1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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];