Skip to content

Commit

Permalink
sceNpScore: return error on 0 scores returned
Browse files Browse the repository at this point in the history
  • Loading branch information
RipleyTom committed Sep 28, 2022
1 parent eedd767 commit 191b099
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rpcs3/Emu/NP/np_requests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,11 @@ namespace np
lastSortDate->tick = resp->lastSortDate();
*totalRecord = resp->totalRecord();

trans_ctx->result = not_an_error(fb_rankarray->size());
if (fb_rankarray->size())
trans_ctx->result = not_an_error(fb_rankarray->size());
else
trans_ctx->result = SCE_NP_COMMUNITY_SERVER_ERROR_GAME_RANKING_NOT_FOUND;

trans_ctx->wake_cond.notify_one();
return true;
}
Expand Down

0 comments on commit 191b099

Please sign in to comment.