Bugfix Küsten

This commit is contained in:
Enno Rehling 2002-02-03 13:53:01 +00:00
parent 427cc7f116
commit 52c0b9fbde

View file

@ -425,7 +425,7 @@ tagbegin(struct xml_stack * stack)
if (tname!=NULL) {
if (st->coast) {
terrain_t * tnew;
for (;st->coast[size++];);
for (;st->coast[size++]!=NOTERRAIN;);
tnew = malloc(sizeof(terrain_t) * (size+2));
memcpy(tnew, st->coast, size*sizeof(terrain_t));
free(st->coast);