]> git.mxchange.org Git - flightgear.git/commitdiff
Check for a NULL current_panel before shelling out mouse actions to a panel
authorcurt <curt>
Wed, 13 Jun 2001 16:41:02 +0000 (16:41 +0000)
committercurt <curt>
Wed, 13 Jun 2001 16:41:02 +0000 (16:41 +0000)
method.

src/GUI/mouse.cxx

index 4b435b297e452a844339d38b0820eb9ad48d1d9d..d80ead445b6bc3b3565f6c740c759edc88dc75d2 100644 (file)
@@ -542,7 +542,9 @@ void guiMouseFunc(int button, int updown, int x, int y)
     // know what's going on.
     if (mouse_mode == MOUSE_POINTER) {
       if (!puMouse (button, updown, x,y)) {
-       current_panel->doMouseAction(button, updown, x, y);
+        if ( current_panel != NULL ) {
+          current_panel->doMouseAction(button, updown, x, y);
+        }
       }
     }