attempt to fix valgrind bug

This commit is contained in:
Enno Rehling 2017-09-16 09:34:47 +02:00
parent 0a3eb9ac7b
commit 0d0fb49381
1 changed files with 3 additions and 0 deletions

View File

@ -931,6 +931,9 @@ static region *readregion(gamedata *data, int x, int y)
if (data->version < LANDDISPLAY_VERSION) {
read_regioninfo(data, r, info, sizeof(info));
}
else {
info[0] = '\0';
}
READ_STR(data->store, name, sizeof(name));
terrain = get_terrain(name);