From f464846c3ca720c7a61961a0ca66fa4cb8858afe Mon Sep 17 00:00:00 2001 From: riccardom Date: Sat, 25 Apr 2009 16:17:12 +0000 Subject: [PATCH] Remember to zero current_reg on close. Should fix #2781065 and hopefully doesn't break anything. --- desmume/src/gtk/tools/ioregsView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desmume/src/gtk/tools/ioregsView.cpp b/desmume/src/gtk/tools/ioregsView.cpp index 8bbc236f4..c701b4791 100644 --- a/desmume/src/gtk/tools/ioregsView.cpp +++ b/desmume/src/gtk/tools/ioregsView.cpp @@ -20,6 +20,7 @@ */ #include +#include #include "../dTool.h" #include "../MMU.h" @@ -398,6 +399,7 @@ static int DTOOL_ID; static void close() { + memset(current_reg, 0, sizeof(current_reg)); dTool_CloseCallback(DTOOL_ID); }