Răsfoiți Sursa

Merge pull request #1434 from DarkLordZach/dlc-edge-case

aoc_u: Fix edge case with DLC that causes breaks
bunnei 7 ani în urmă
părinte
comite
cf3a6dd4a1
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/core/hle/service/aoc/aoc_u.cpp

+ 1 - 1
src/core/hle/service/aoc/aoc_u.cpp

@@ -84,7 +84,7 @@ void AOC_U::ListAddOnContent(Kernel::HLERequestContext& ctx) {
             out.push_back(static_cast<u32>(add_on_content[i] & 0x7FF));
     }
 
-    if (out.size() <= offset) {
+    if (out.size() < offset) {
         IPC::ResponseBuilder rb{ctx, 2};
         // TODO(DarkLordZach): Find the correct error code.
         rb.Push(ResultCode(-1));