Explorar el Código

Kernel: Fix bug in HandleTable::Close

Yuri Kunde Schlesner hace 11 años
padre
commit
e8330dd162
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/core/hle/kernel/kernel.cpp

+ 1 - 1
src/core/hle/kernel/kernel.cpp

@@ -101,7 +101,7 @@ ResultCode HandleTable::Close(Handle handle) {
 
     objects[slot] = nullptr;
 
-    generations[generation] = next_free_slot;
+    generations[slot] = next_free_slot;
     next_free_slot = slot;
     return RESULT_SUCCESS;
 }