From 605aaf51e6c33613677d2cebd5ba7c1235321237 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 3 Mar 2002 16:58:10 +0000 Subject: [PATCH] =?UTF-8?q?bl=C3=B6dsinn=20beim=20einlesen=20der=20watcher?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/kernel/save.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/common/kernel/save.c b/src/common/kernel/save.c index d37c7c6ca..618e9ae64 100644 --- a/src/common/kernel/save.c +++ b/src/common/kernel/save.c @@ -849,17 +849,15 @@ readgame(boolean backup) pl->maxy = ri(F); pl->flags = ri(F); if (global.data_version>WATCHERS_VERSION) { - char * s = NULL; - rds(F, &s); - while (strcmp(s, "end")!=0) { + rs(F, buf); + while (strcmp(buf, "end")!=0) { watcher * w = calloc(sizeof(watcher),1); - int fno = ri36(F); + int fno = atoi36(buf); w->mode = (unsigned char)ri(F); w->next = pl->watchers; pl->watchers = w; ur_add((void*)fno, (void**)&w->faction, resolve_faction); } - free(s); } a_read(F, &pl->attribs); addlist(&planes, pl);