forked from rosebudai/OpenRCT2-Web
Merge iterator variable assignment and definition into one line
This commit is contained in:
1 parent
08c59fb094
commit
fbbf142449
8 files changed
+15
-21
No files matched your search
@@ -227,8 +227,8 @@ static constexpr float kWindowScrollLocations[][2] = {
|
||||
|
||||
int32_t WindowGetScrollDataIndex(const WindowBase& w, WidgetIndex widget_index)
|
||||
{
|
||||
int32_t i, result = 0;
|
||||
for (i = 0; i < widget_index; i++)
|
||||
int32_t result = 0;
|
||||
for (int32_t i = 0; i < widget_index; i++)
|
||||
{
|
||||
const auto& widget = w.widgets[i];
|
||||
if (widget.type == WidgetType::scroll)
|
||||
|
||||
Reference in new issue
Block a user