VERY experimental Nintendo Switch 2 emulator
C++
kernel/handle-table: In-class initialize data members
Lioncasha13187e00230
diff --git a/src/core/hle/kernel/handle_table.cpp b/src/core/hle/kernel/handle_table.cppindex a30038dca5..cd3508fa9a 100644--- a/src/core/hle/kernel/handle_table.cpp+++ b/src/core/hle/kernel/handle_table.cpp@@ -23,7 +23,6 @@ constexpr u16 GetGeneration(Handle handle) {} // Anonymous namespaceHandleTable::HandleTable() {- next_generation = 1;Clear();}diff --git a/src/core/hle/kernel/handle_table.h b/src/core/hle/kernel/handle_table.hindex 89a3bc7403..5fa55c7835 100644--- a/src/core/hle/kernel/handle_table.h+++ b/src/core/hle/kernel/handle_table.h@@ -107,10 +107,10 @@ private:* Global counter of the number of created handles. Stored in `generations` when a handle is* created, and wraps around to 1 when it hits 0x8000.*/- u16 next_generation;+ u16 next_generation = 1;/// Head of the free slots linked list.- u16 next_free_slot;+ u16 next_free_slot = 0;};} // namespace Kernel