diff options
| author | Petr Mrázek | 2011-12-02 10:56:40 +0100 |
|---|---|---|
| committer | Petr Mrázek | 2011-12-02 10:56:40 +0100 |
| commit | f7d78539d34ee5d9529a32fecfe17537ec1b6bee (patch) | |
| tree | 4e3b4c402a9409f5fe1eaf9773ff24a31c4025a9 /plugins/fastdwarf.cpp | |
| parent | 9dba6003bc5973fbf99dc778f88f6f3cecf1ab0b (diff) | |
| download | dfhack-f7d78539d34ee5d9529a32fecfe17537ec1b6bee.tar.gz dfhack-f7d78539d34ee5d9529a32fecfe17537ec1b6bee.tar.bz2 dfhack-f7d78539d34ee5d9529a32fecfe17537ec1b6bee.tar.xz | |
Renaming Creatures to Units
Diffstat (limited to 'plugins/fastdwarf.cpp')
| -rw-r--r-- | plugins/fastdwarf.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/fastdwarf.cpp b/plugins/fastdwarf.cpp index 88872af7..534e3461 100644 --- a/plugins/fastdwarf.cpp +++ b/plugins/fastdwarf.cpp @@ -13,7 +13,7 @@ using namespace std; #include <dfhack/Export.h> #include <dfhack/PluginManager.h> #include <dfhack/VersionInfo.h> -#include <dfhack/modules/Creatures.h> +#include <dfhack/modules/Units.h> using namespace DFHack; // dfhack interface @@ -33,9 +33,9 @@ DFhackCExport command_result plugin_onupdate ( Core * c ) { if (!enable_fastdwarf) return CR_OK; - df_creature *cre; - DFHack::Creatures * cr = c->getCreatures(); - static vector <df_creature*> *v = cr->creatures; + df_unit *cre; + DFHack::Units * cr = c->getUnits(); + static vector <df_unit*> *v = cr->creatures; uint32_t race = cr->GetDwarfRaceIndex(); uint32_t civ = cr->GetDwarfCivId(); if (!v) |
