From: Holger Schemel Date: Thu, 9 Feb 2017 20:20:05 +0000 (+0100) Subject: fixed bug with clearing gadget info text area for unmapped gadgets X-Git-Tag: 4.0.0.2~1 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=1f8b87db45242885f00440d4ca5a06f00afdb3ef;p=rocksndiamonds.git fixed bug with clearing gadget info text area for unmapped gadgets --- diff --git a/src/libgame/gadgets.c b/src/libgame/gadgets.c index 98e46a5a..6b7d2592 100644 --- a/src/libgame/gadgets.c +++ b/src/libgame/gadgets.c @@ -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);