]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
DMA debugger command parsing fix.
authorToni Wilen <twilen@winuae.net>
Sat, 14 Dec 2019 18:06:02 +0000 (20:06 +0200)
committerToni Wilen <twilen@winuae.net>
Sat, 14 Dec 2019 18:06:02 +0000 (20:06 +0200)
debug.cpp

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