From a477cf29dab5650a0ec74ba69d3d917f2b041957 Mon Sep 17 00:00:00 2001 From: Grinch_ Date: Tue, 5 Jul 2022 02:32:03 +0600 Subject: [PATCH] Crash fixes --- src/widget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widget.cpp b/src/widget.cpp index 2340b43..9da6a2b 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -555,11 +555,11 @@ bool Widget::Checkbox(const char* label, bool* v, const char* hint, bool is_disa bool Widget::CheckboxAddr(const char* label, uint addr, const char* hint) { bool rtn = false; - bool state = patch::Get(addr, false); + bool state = patch::Get(addr); if (Checkbox(label, &state, hint) && addr != NULL) { - patch::Set(addr, state, false); + patch::Set(addr, state); rtn = true; }