From cf96a97e95c00cafdc14015c3920d6318c270c38 Mon Sep 17 00:00:00 2001 From: Rubidium Date: Sat, 15 Mar 2025 11:51:45 +0100 Subject: [PATCH] Codefix: remove unneeded looping logic --- src/newgrf.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 1426845656..3d528ac532 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -3765,7 +3765,6 @@ static ChangeInfoResult IndustriesChangeInfo(uint first, uint last, int prop, By for (uint8_t j = 0; j < new_num_layouts; j++) { layout.clear(); - layout.reserve(new_num_layouts); for (uint k = 0;; k++) { if (bytes_read >= definition_size) { @@ -3843,8 +3842,6 @@ static ChangeInfoResult IndustriesChangeInfo(uint first, uint last, int prop, By if (!ValidateIndustryLayout(layout)) { /* The industry layout was not valid, so skip this one. */ GrfMsg(1, "IndustriesChangeInfo: Invalid industry layout for industry id {}. Ignoring", id); - new_num_layouts--; - j--; } else { new_layouts.push_back(layout); }