forked from github/server
attempt to fix valgrind bug
This commit is contained in:
parent
0a3eb9ac7b
commit
0d0fb49381
1 changed files with 3 additions and 0 deletions
|
@ -931,6 +931,9 @@ static region *readregion(gamedata *data, int x, int y)
|
||||||
if (data->version < LANDDISPLAY_VERSION) {
|
if (data->version < LANDDISPLAY_VERSION) {
|
||||||
read_regioninfo(data, r, info, sizeof(info));
|
read_regioninfo(data, r, info, sizeof(info));
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
info[0] = '\0';
|
||||||
|
}
|
||||||
|
|
||||||
READ_STR(data->store, name, sizeof(name));
|
READ_STR(data->store, name, sizeof(name));
|
||||||
terrain = get_terrain(name);
|
terrain = get_terrain(name);
|
||||||
|
|
Loading…
Reference in a new issue