Minor reveal fix - only preallocate unreveal data for existing map blocks

develop
Quietust 2014-08-31 11:43:19 -05:00
parent 948fbb48f6
commit 92946e5fbc
1 changed files with 1 additions and 1 deletions

@ -210,7 +210,7 @@ command_result reveal(color_ostream &out, vector<string> & params)
}
Maps::getSize(x_max,y_max,z_max);
hidesaved.reserve(x_max * y_max * z_max);
hidesaved.reserve(world->map.map_blocks.size());
for (size_t i = 0; i < world->map.map_blocks.size(); i++)
{
df::map_block *block = world->map.map_blocks[i];