diff --git a/src/core/cheats.cpp b/src/core/cheats.cpp index 5375e74085..c8da2c6231 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()) {