core: generate SC_WORLD_LOADED for arena too

develop
jj 2013-07-07 23:34:55 +02:00
parent 297fa86c34
commit 6f5c03b912
1 changed files with 2 additions and 1 deletions

@ -1160,7 +1160,8 @@ void Core::doUpdate(color_ostream &out, bool first_update)
{
df::world_data *wdata = df::global::world->world_data;
// when the game is unloaded, world_data isn't deleted, but its contents are
if (wdata && !wdata->sites.empty())
// regions work to detect arena too
if (wdata && !wdata->regions.empty())
new_wdata = wdata;
new_mapdata = df::global::world->map.block_index;
}