projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8cce6c
)
added null pointer check to gadget function
author
Holger Schemel
<info@artsoft.org>
Wed, 1 Nov 2017 21:14:44 +0000
(22:14 +0100)
committer
Holger Schemel
<info@artsoft.org>
Fri, 23 Mar 2018 22:21:15 +0000
(23:21 +0100)
src/libgame/gadgets.c
patch
|
blob
|
history
diff --git
a/src/libgame/gadgets.c
b/src/libgame/gadgets.c
index 668641bd30be64133832e37550cbc06eccedd803..a797c75475a1a9b41bf9f6cb2e25a79a67f5f406 100644
(file)
--- a/
src/libgame/gadgets.c
+++ b/
src/libgame/gadgets.c
@@
-1481,7
+1481,7
@@
static boolean insideSelectboxArea(struct GadgetInfo *gi, int mx, int my)
void ClickOnGadget(struct GadgetInfo *gi, int button)
{
- if (!gi->mapped)
+ if (
gi == NULL || gi->deactivated ||
!gi->mapped)
return;
/* simulate releasing mouse button over last gadget, if still pressed */