diff options
author | alberth <alberth@openttd.org> | 2011-02-25 21:53:43 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2011-02-25 21:53:43 +0000 |
commit | 1dbc0a20bed5cd85035b4f84a649c4f7386b07ab (patch) | |
tree | 2913d6359a374885441eeb51a67c6e0c7e0f08ef /src/saveload | |
parent | 87c8d97aca779cb227a4e015233cd266b63f2b79 (diff) | |
download | openttd-1dbc0a20bed5cd85035b4f84a649c4f7386b07ab.tar.xz |
(svn r22144) -Codechange: Unify 'while (true)' to 'for (;;)'
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; |