Saveload: Use template function to implement SlAutolength

This commit is contained in:
Jonathan G Rennison
2024-07-14 18:45:17 +01:00
parent 74047028dd
commit 99c6cc5bdb
9 changed files with 34 additions and 24 deletions

View File

@@ -491,7 +491,7 @@ static void Save_PLYR()
{
for (Company *c : Company::Iterate()) {
SlSetArrayIndex(c->index);
SlAutolength((AutolengthProc*)SaveLoad_PLYR, c);
SlAutolength(SaveLoad_PLYR, c);
}
}