diff options
| author | Quietust | 2012-01-21 13:03:39 -0600 |
|---|---|---|
| committer | Quietust | 2012-01-21 13:03:39 -0600 |
| commit | 8052305c2ec746294b707540409dafb6c09529d9 (patch) | |
| tree | a49c147e02cf8fc23fb63db5caf6ca5708902584 /plugins/probe.cpp | |
| parent | 118e5c6617d1246c3d15739427f0f45143313dfa (diff) | |
| download | dfhack-8052305c2ec746294b707540409dafb6c09529d9.tar.gz dfhack-8052305c2ec746294b707540409dafb6c09529d9.tar.bz2 dfhack-8052305c2ec746294b707540409dafb6c09529d9.tar.xz | |
Cleanup the Units module
Diffstat (limited to 'plugins/probe.cpp')
| -rw-r--r-- | plugins/probe.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/probe.cpp b/plugins/probe.cpp index 637cf3b6..43c6f057 100644 --- a/plugins/probe.cpp +++ b/plugins/probe.cpp @@ -68,10 +68,10 @@ DFhackCExport command_result df_cprobe (Core * c, vector <string> & parameters) cr->Start(ncr); for(auto i = 0; i < ncr; i++) { - df_unit * unit = cr->GetCreature( i ); - if(unit->x == cursorX && unit->y == cursorY && unit->z == cursorZ) + df::unit * unit = cr->GetCreature( i ); + if(unit->pos.x == cursorX && unit->pos.y == cursorY && unit->pos.z == cursorZ) { - con.print("Creature %d, race %d (%x), civ %d (%x)\n", unit->id, unit->race, unit->race, unit->civ, unit->civ); + con.print("Creature %d, race %d (%x), civ %d (%x)\n", unit->id, unit->race, unit->race, unit->civ_id, unit->civ_id); break; } } |
