1
0
Fork 0

Codefix: remove unneeded looping logic

pull/13829/head
Rubidium 2025-03-15 11:51:45 +01:00 committed by rubidium42
parent 62b8b93476
commit cf96a97e95
1 changed files with 0 additions and 3 deletions

View File

@ -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);
}