diff options
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/saveload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp index 76f5215e6..4b7e3845a 100644 --- a/src/saveload/saveload.cpp +++ b/src/saveload/saveload.cpp @@ -761,7 +761,7 @@ int SlIterateArray() * we must have read in all the data, so we must be at end of current block. */ if (_next_offs != 0 && _sl.reader->GetSize() != _next_offs) SlErrorCorrupt("Invalid chunk size"); - while (true) { + for (;;) { uint length = SlReadArrayLength(); if (length == 0) { _next_offs = 0; |