Codechange: Replace FOR_ALL_GOALS with range-based for loops

This commit is contained in:
glx
2019-12-16 17:53:40 +01:00
committed by Niels Martin Hansen
parent 1f6b3a37f9
commit f58ce3db19
4 changed files with 7 additions and 16 deletions

View File

@@ -26,8 +26,7 @@ static const SaveLoad _goals_desc[] = {
static void Save_GOAL()
{
Goal *s;
FOR_ALL_GOALS(s) {
for (Goal *s : Goal::Iterate()) {
SlSetArrayIndex(s->index);
SlObject(s, _goals_desc);
}