diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/kernel/handle_table.cpp | 1 | ||||
| -rw-r--r-- | src/core/hle/kernel/handle_table.h | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hle/kernel/handle_table.cpp b/src/core/hle/kernel/handle_table.cpp index a30038dca..cd3508fa9 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) { | |||
| 23 | } // Anonymous namespace | 23 | } // Anonymous namespace |
| 24 | 24 | ||
| 25 | HandleTable::HandleTable() { | 25 | HandleTable::HandleTable() { |
| 26 | next_generation = 1; | ||
| 27 | Clear(); | 26 | Clear(); |
| 28 | } | 27 | } |
| 29 | 28 | ||
diff --git a/src/core/hle/kernel/handle_table.h b/src/core/hle/kernel/handle_table.h index 89a3bc740..5fa55c783 100644 --- a/src/core/hle/kernel/handle_table.h +++ b/src/core/hle/kernel/handle_table.h | |||
| @@ -107,10 +107,10 @@ private: | |||
| 107 | * Global counter of the number of created handles. Stored in `generations` when a handle is | 107 | * Global counter of the number of created handles. Stored in `generations` when a handle is |
| 108 | * created, and wraps around to 1 when it hits 0x8000. | 108 | * created, and wraps around to 1 when it hits 0x8000. |
| 109 | */ | 109 | */ |
| 110 | u16 next_generation; | 110 | u16 next_generation = 1; |
| 111 | 111 | ||
| 112 | /// Head of the free slots linked list. | 112 | /// Head of the free slots linked list. |
| 113 | u16 next_free_slot; | 113 | u16 next_free_slot = 0; |
| 114 | }; | 114 | }; |
| 115 | 115 | ||
| 116 | } // namespace Kernel | 116 | } // namespace Kernel |