summaryrefslogtreecommitdiff
path: root/saveload.c
diff options
context:
space:
mode:
Diffstat (limited to 'saveload.c')
-rw-r--r--saveload.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/saveload.c b/saveload.c
index 5e0988a60..f521ff7d6 100644
--- a/saveload.c
+++ b/saveload.c
@@ -778,11 +778,9 @@ static const ChunkHandler *SlFindChunkHandler(uint32 id)
const ChunkHandler *ch;
const ChunkHandler *const *chsc;
for (chsc = _sl.chs; (ch=*chsc++) != NULL;) {
- while(true) {
- if (ch->id == id)
- return ch;
- if (ch->flags & CH_LAST)
- break;
+ for (;;) {
+ if (ch->id == id) return ch;
+ if (ch->flags & CH_LAST) break;
ch++;
}
}