From f55acdf0e852d62d2f7111084b80339ef644fe1a Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sun, 1 Feb 2015 16:52:46 +0200 Subject: [PATCH] Clear variable first to prevent infinite recursion. --- od-win32/win32.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/od-win32/win32.cpp b/od-win32/win32.cpp index c16404d3..da5247fb 100644 --- a/od-win32/win32.cpp +++ b/od-win32/win32.cpp @@ -499,9 +499,10 @@ bool resumepaused (int priority) return false; resumesoundpaused (); blkdev_exitgui (); - if (pausemouseactive) + if (pausemouseactive) { + pausemouseactive = 0; setmouseactive (-1); - pausemouseactive = 0; + } pause_emulation = 0; #ifdef RETROPLATFORM rp_pause (pause_emulation); -- 2.47.3