Bugfix Küsten, die zweite

This commit is contained in:
Enno Rehling 2002-02-03 13:58:43 +00:00
parent 52c0b9fbde
commit 9003bcd267
1 changed files with 1 additions and 1 deletions

View File

@ -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);