summaryrefslogtreecommitdiff
path: root/src/video
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-02-26 00:41:24 +0000
committerrubidium <rubidium@openttd.org>2007-02-26 00:41:24 +0000
commitf3f966e61674cf69b52a9e729de51da220b44c30 (patch)
tree32d762d9e33462e9c118f079916d9c7ded245635 /src/video
parent34154aa89e5bff1054876f09d1e233983f103e97 (diff)
downloadopenttd-f3f966e61674cf69b52a9e729de51da220b44c30.tar.xz
(svn r8907) -Fix (r3281): reading from an unitialized variable.
Diffstat (limited to 'src/video')
-rw-r--r--src/video/cocoa_v.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/cocoa_v.mm b/src/video/cocoa_v.mm
index aaa9475ef..371f6b777 100644
--- a/src/video/cocoa_v.mm
+++ b/src/video/cocoa_v.mm
@@ -508,12 +508,12 @@ static bool QZ_PollEvent(void)
break;
case NSLeftMouseDown:
+ pt = QZ_GetMouseLocation(event);
if (!([ event modifierFlags ] & NSCommandKeyMask) ||
!QZ_MouseIsInsideView(&pt)) {
[NSApp sendEvent:event];
}
- pt = QZ_GetMouseLocation(event);
if (!QZ_MouseIsInsideView(&pt)) {
QZ_ShowMouse();
break;