Permalink
Browse files

MapControl::OnMouseDown: make doubleclicking possible

coverity 4340
  • Loading branch information...
1 parent 7206fda commit 2bf3615020bcb81cc30106f1cb1ed0cd3cf771b3 @lynxlynxlynx lynxlynxlynx committed Apr 22, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 gemrb/core/GUI/MapControl.cpp
View
2 gemrb/core/GUI/MapControl.cpp
@@ -397,7 +397,7 @@ void MapControl::ViewHandle(unsigned short x, unsigned short y)
void MapControl::OnMouseDown(unsigned short x, unsigned short y, unsigned short Button,
unsigned short /*Mod*/)
{
- switch((unsigned char) Button) {
+ switch((unsigned char) Button & GEM_MB_NORMAL) {
case GEM_MB_SCRLUP:
OnSpecialKeyPress(GEM_UP);
return;

0 comments on commit 2bf3615

Please sign in to comment.