summaryrefslogtreecommitdiff
path: root/oldloader.c
diff options
context:
space:
mode:
Diffstat (limited to 'oldloader.c')
-rw-r--r--oldloader.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/oldloader.c b/oldloader.c
index 4b5258c54..cd01c356a 100644
--- a/oldloader.c
+++ b/oldloader.c
@@ -188,12 +188,11 @@ static inline uint32 ReadUint32(LoadgameState *ls)
static bool LoadChunk(LoadgameState *ls, void *base, const OldChunks *chunks)
{
const OldChunks *chunk = chunks;
- byte *ptr;
byte *base_ptr = base;
- uint i;
while (chunk->type != OC_END) {
- ptr = chunk->ptr;
+ byte* ptr = chunk->ptr;
+ uint i;
for (i = 0; i < chunk->amount; i++) {
if (ls->failed) return false;