Better annotate some magic numbers in for loops

This commit is contained in:
Hielke Morsink authored and GitHub committed 2022-10-17 16:08:55 +00:00
1 parent fdbceae17c
commit 3bb8ea3668
20 files changed
+62 -61

No files matched your search

+1 -2
View File
@@ -1306,9 +1306,8 @@ void window_resize(rct_window& w, int32_t dw, int32_t dh)
window_event_invalidate_call(&w);
// Update scroll widgets
for (int32_t i = 0; i < 3; i++)
for (auto& scroll : w.scrolls)
{
auto& scroll = w.scrolls[i];
scroll.h_right = WINDOW_SCROLL_UNDEFINED;
scroll.v_bottom = WINDOW_SCROLL_UNDEFINED;
}