fixed bug with clearing gadget info text area for unmapped gadgets
authorHolger Schemel <info@artsoft.org>
Thu, 9 Feb 2017 20:20:05 +0000 (21:20 +0100)
committerHolger Schemel <info@artsoft.org>
Thu, 9 Feb 2017 20:20:05 +0000 (21:20 +0100)
src/libgame/gadgets.c

index 98e46a5a2917e577e9159c9086ac4d5258190d1c..6b7d2592f435849b3bd8fb0f8798227278a18ca7 100644 (file)
@@ -1758,7 +1758,7 @@ boolean HandleGadgets(int mx, int my, int button)
       new_gi->event.type = GD_EVENT_INFO_ENTERING;
       new_gi->callback_info(new_gi);
     }
-    else if (last_info_gi != NULL)
+    else if (last_info_gi != NULL && last_info_gi->mapped)
     {
       last_info_gi->event.type = GD_EVENT_INFO_LEAVING;
       last_info_gi->callback_info(last_info_gi);