Debugger: Make sure we don't restore twice.

Aside from the lock, we also don't want to restore emuhacks/replacements
or resume from stepping early.
This commit is contained in:
Unknown W. Brackets committed 2023-01-04 23:48:14 -08:00
1 parent 88489bf4cc
commit 5b74937780
1 file changed
+2
@@ -86,7 +86,9 @@ AutoDisabledReplacements::AutoDisabledReplacements(AutoDisabledReplacements &&ot
replacements = std::move(other.replacements);
emuhacks = std::move(emuhacks);
saved = other.saved;
other.saved = false;
wasStepping = other.wasStepping;
other.wasStepping = true;
}
AutoDisabledReplacements::~AutoDisabledReplacements() {