]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Clear variable first to prevent infinite recursion.
authorToni Wilen <twilen@winuae.net>
Sun, 1 Feb 2015 14:52:46 +0000 (16:52 +0200)
committerToni Wilen <twilen@winuae.net>
Sun, 1 Feb 2015 14:52:46 +0000 (16:52 +0200)
od-win32/win32.cpp

index c16404d3307cb91f284836ebf57c9bc70dc3d4a4..da5247fb2d8e0fd61c4a956010d36dcea4b57d4b 100644 (file)
@@ -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);