Эх сурвалжийг харах

Kernel: Fix bug in HandleTable::Close

Yuri Kunde Schlesner 11 жил өмнө
parent
commit
e8330dd162

+ 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;
 }