diff --git a/desmume/src/windows/ram_search.cpp b/desmume/src/windows/ram_search.cpp index d622e4712..c09219981 100644 --- a/desmume/src/windows/ram_search.cpp +++ b/desmume/src/windows/ram_search.cpp @@ -1188,6 +1188,11 @@ LRESULT CustomDraw (LPARAM lParam) //extern "C" int disableRamSearchUpdate; void Update_RAM_Search() //keeps RAM values up to date in the search and watch windows { + if(RamWatchHWnd) + { + Update_RAM_Watch(); + } + if (!RamSearchHWnd) return; // if(disableRamSearchUpdate) // return; @@ -1271,11 +1276,6 @@ void Update_RAM_Search() //keeps RAM values up to date in the search and watch w } } } - - if(RamWatchHWnd) - { - Update_RAM_Watch(); - } } static int rs_lastPercent = -1;