diff --git a/plugins/reveal.cpp b/plugins/reveal.cpp index 1cafc3ca6..c0d71bb7b 100644 --- a/plugins/reveal.cpp +++ b/plugins/reveal.cpp @@ -210,7 +210,7 @@ command_result reveal(color_ostream &out, vector & 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];