Merge pull request #792 from ennorehling/develop

lighthouse crash fix
This commit is contained in:
Enno Rehling 2018-07-22 10:56:06 +02:00 committed by GitHub
commit 138114bcb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -99,8 +99,6 @@ function self.update()
r:set_resource("tree", trees * 1.1)
msg:send_region(r)
end
if clear then
end
end
end
else

View File

@ -1493,7 +1493,9 @@ int read_game(gamedata *data)
if (r->flags & RF_LIGHTHOUSE) {
building *b;
for (b = r->buildings; b; b = b->next) {
update_lighthouse(b);
if (is_lighthouse(b->type)) {
update_lighthouse(b);
}
}
}
}