diff options
author | rubidium <rubidium@openttd.org> | 2007-02-26 00:41:24 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-02-26 00:41:24 +0000 |
commit | 67201b129de8c1a41b0ca09e1de67caedfcd4e60 (patch) | |
tree | 32d762d9e33462e9c118f079916d9c7ded245635 /src/video | |
parent | 58f2b636b449f0d1a4cb8a155ef18f6fa0ffbed2 (diff) | |
download | openttd-67201b129de8c1a41b0ca09e1de67caedfcd4e60.tar.xz |
(svn r8907) -Fix (r3281): reading from an unitialized variable.
Diffstat (limited to 'src/video')
-rw-r--r-- | src/video/cocoa_v.mm | 2 |
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; |