From 468c907fd66420f7de47e251d4b20ba2a1d3336a Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 29 Dec 2024 22:34:31 +1000 Subject: [PATCH] Cheats: Compiler warning fix --- src/core/cheats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/cheats.cpp b/src/core/cheats.cpp index 5375e7408..c8da2c623 100644 --- a/src/core/cheats.cpp +++ b/src/core/cheats.cpp @@ -2111,7 +2111,7 @@ std::unique_ptr Cheats::GamesharkCheatCode::Parse(Me std::optional second; if (next.find('?') != std::string_view::npos) { - u8 option_bitpos, option_bitcount; + u8 option_bitpos = 0, option_bitcount = 0; second = ParseHexOptionMask(next, &option_bitpos, &option_bitcount); if (second.has_value()) {