Change: Use vector/iterators/algorithms instead of C-array/loops for NewGRF classes.

This commit is contained in:
Peter Nelson
2024-04-09 17:54:42 +01:00
committed by Peter Nelson
parent 34758d0921
commit 052f421327
4 changed files with 35 additions and 58 deletions

View File

@@ -458,6 +458,8 @@ struct StringIDMapping {
StringIDMapping(uint32_t grfid, StringID source, std::function<void(StringID)> &&func) : grfid(grfid), source(source), func(std::move(func)) { }
};
/** Strings to be mapped during load. */
static std::vector<StringIDMapping> _string_to_grf_mapping;
/**