1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-16 17:02:37 +01:00

Codechange: Pass span instead of vector to HaveDParamChanged.

This commit is contained in:
Peter Nelson
2024-07-30 12:23:50 +01:00
committed by Peter Nelson
parent 9eb28def57
commit b449839538
2 changed files with 2 additions and 2 deletions

View File

@@ -191,7 +191,7 @@ void CopyOutDParam(std::vector<StringParameterBackup> &backup, size_t num)
* @param backup The backup to check against.
* @return True when the parameters have changed, otherwise false.
*/
bool HaveDParamChanged(const std::vector<StringParameterBackup> &backup)
bool HaveDParamChanged(const std::span<const StringParameterBackup> backup)
{
bool changed = false;
for (size_t i = 0; !changed && i < backup.size(); i++) {