mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fixes one of the issues of #121 but 526 cannot be easily fixed
This commit is contained in:
parent
f7b8d4567b
commit
dc3804bfa2
|
@ -193,4 +193,4 @@
|
|||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
</Project>
|
|
@ -629,7 +629,6 @@ static void input_leftmousedown(int x, int y, rct_window *w, int widgetIndex)
|
|||
if (w != NULL) {
|
||||
windowClass = w->classification;
|
||||
windowNumber = w->number;
|
||||
widget = &w->widgets[widgetIndex];
|
||||
}
|
||||
|
||||
window_close_by_id(WC_ERROR, 0);
|
||||
|
@ -643,6 +642,8 @@ static void input_leftmousedown(int x, int y, rct_window *w, int widgetIndex)
|
|||
if (widgetIndex == -1)
|
||||
return;
|
||||
|
||||
widget = &w->widgets[widgetIndex];
|
||||
|
||||
switch (widget->type) {
|
||||
case WWT_FRAME:
|
||||
case WWT_RESIZE:
|
||||
|
|
Loading…
Reference in New Issue