]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
DMA debugger command line parsing fix.
authorToni Wilen <twilen@winuae.net>
Mon, 9 Dec 2019 17:34:23 +0000 (19:34 +0200)
committerToni Wilen <twilen@winuae.net>
Mon, 9 Dec 2019 17:34:23 +0000 (19:34 +0200)
debug.cpp

index 6dba2553d3eb9be9813b18f6d4c6c124a8287a68..ad7325df76e06462453206a8af845ed41932127e 100644 (file)
--- a/debug.cpp
+++ b/debug.cpp
@@ -5901,11 +5901,11 @@ static bool debug_line (TCHAR *input)
                                                }
                                        }
                                } else {
+                                       int nextcmd = peekchar(&inptr);
                                        if (more_params(&inptr) && *inptr == '?') {
                                                mw_help();
                                        } else {
                                                free_heatmap();
-                                               int nextcmd = peekchar(&inptr);
                                                if (nextcmd != ' ') {
                                                        next_char(&inptr);
                                                }