diff options
| author | Alexander Gavrilov | 2012-08-27 23:03:02 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-08-27 23:03:02 +0400 |
| commit | f1915915b48395e9180c03dc8bf26f303eff877f (patch) | |
| tree | 14ca81ba53c7f444ebcd42c643f8be6da6e5720d /plugins/probe.cpp | |
| parent | 5ad9b82ace4b0a1ef951e0e35d06f35aa88e8e41 (diff) | |
| download | dfhack-f1915915b48395e9180c03dc8bf26f303eff877f.tar.gz dfhack-f1915915b48395e9180c03dc8bf26f303eff877f.tar.bz2 dfhack-f1915915b48395e9180c03dc8bf26f303eff877f.tar.xz | |
Follow change in xml again.
Diffstat (limited to 'plugins/probe.cpp')
| -rw-r--r-- | plugins/probe.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/probe.cpp b/plugins/probe.cpp index 2ae6846d..45ef1bbf 100644 --- a/plugins/probe.cpp +++ b/plugins/probe.cpp @@ -27,6 +27,7 @@ using namespace std; #include "df/world.h" #include "df/world_raws.h" #include "df/building_def.h" +#include "df/region_map_entry.h" using std::vector; using std::string; @@ -224,8 +225,7 @@ command_result df_probe (color_ostream &out, vector <string> & parameters) int bx = clip_range(block.region_pos.x + (offset % 3) - 1, 0, world->world_data->world_width-1); int by = clip_range(block.region_pos.y + (offset / 3) - 1, 0, world->world_data->world_height-1); - df::world_data::T_region_map* biome = - &world->world_data->region_map[bx][by]; + auto biome = &world->world_data->region_map[bx][by]; int sav = biome->savagery; int evi = biome->evilness; |
