mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r8907) -Fix (r3281): reading from an unitialized variable.
This commit is contained in:
parent
58f2b636b4
commit
67201b129d
@ -508,12 +508,12 @@ static bool QZ_PollEvent(void)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case NSLeftMouseDown:
|
case NSLeftMouseDown:
|
||||||
|
pt = QZ_GetMouseLocation(event);
|
||||||
if (!([ event modifierFlags ] & NSCommandKeyMask) ||
|
if (!([ event modifierFlags ] & NSCommandKeyMask) ||
|
||||||
!QZ_MouseIsInsideView(&pt)) {
|
!QZ_MouseIsInsideView(&pt)) {
|
||||||
[NSApp sendEvent:event];
|
[NSApp sendEvent:event];
|
||||||
}
|
}
|
||||||
|
|
||||||
pt = QZ_GetMouseLocation(event);
|
|
||||||
if (!QZ_MouseIsInsideView(&pt)) {
|
if (!QZ_MouseIsInsideView(&pt)) {
|
||||||
QZ_ShowMouse();
|
QZ_ShowMouse();
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user