forked from github/server
Bugfix Küsten, die zweite
This commit is contained in:
parent
52c0b9fbde
commit
9003bcd267
|
@ -425,7 +425,7 @@ tagbegin(struct xml_stack * stack)
|
||||||
if (tname!=NULL) {
|
if (tname!=NULL) {
|
||||||
if (st->coast) {
|
if (st->coast) {
|
||||||
terrain_t * tnew;
|
terrain_t * tnew;
|
||||||
for (;st->coast[size++]!=NOTERRAIN;);
|
for (;st->coast[size]!=NOTERRAIN;++size);
|
||||||
tnew = malloc(sizeof(terrain_t) * (size+2));
|
tnew = malloc(sizeof(terrain_t) * (size+2));
|
||||||
memcpy(tnew, st->coast, size*sizeof(terrain_t));
|
memcpy(tnew, st->coast, size*sizeof(terrain_t));
|
||||||
free(st->coast);
|
free(st->coast);
|
||||||
|
|
Loading…
Reference in New Issue