From 1dbc0a20bed5cd85035b4f84a649c4f7386b07ab Mon Sep 17 00:00:00 2001 From: alberth Date: Fri, 25 Feb 2011 21:53:43 +0000 Subject: (svn r22144) -Codechange: Unify 'while (true)' to 'for (;;)' --- src/saveload/saveload.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/saveload') 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; -- cgit v1.2.3-70-g09d2