mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
Cleanup variables usage and initialize them
This commit is contained in:
@@ -1276,7 +1276,6 @@ void window_move_position(rct_window* w, const ScreenCoordsXY& deltaCoords)
|
||||
|
||||
void window_resize(rct_window* w, int32_t dw, int32_t dh)
|
||||
{
|
||||
int32_t i;
|
||||
if (dw == 0 && dh == 0)
|
||||
return;
|
||||
|
||||
@@ -1291,7 +1290,7 @@ void window_resize(rct_window* w, int32_t dw, int32_t dh)
|
||||
window_event_invalidate_call(w);
|
||||
|
||||
// Update scroll widgets
|
||||
for (i = 0; i < 3; i++)
|
||||
for (int32_t i = 0; i < 3; i++)
|
||||
{
|
||||
w->scrolls[i].h_right = WINDOW_SCROLL_UNDEFINED;
|
||||
w->scrolls[i].v_bottom = WINDOW_SCROLL_UNDEFINED;
|
||||
|
||||
Reference in New Issue
Block a user