From 9003bcd26707229ee41f34ea4a8b8fac895ec8ff Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 3 Feb 2002 13:58:43 +0000 Subject: [PATCH] =?UTF-8?q?Bugfix=20K=C3=BCsten,=20die=20zweite?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/kernel/ship.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/kernel/ship.c b/src/common/kernel/ship.c index 521e349f8..bd9b67d29 100644 --- a/src/common/kernel/ship.c +++ b/src/common/kernel/ship.c @@ -425,7 +425,7 @@ tagbegin(struct xml_stack * stack) if (tname!=NULL) { if (st->coast) { terrain_t * tnew; - for (;st->coast[size++]!=NOTERRAIN;); + for (;st->coast[size]!=NOTERRAIN;++size); tnew = malloc(sizeof(terrain_t) * (size+2)); memcpy(tnew, st->coast, size*sizeof(terrain_t)); free(st->coast);