diff options
| author | Quietust | 2012-01-11 09:53:28 -0600 |
|---|---|---|
| committer | Quietust | 2012-01-11 09:53:28 -0600 |
| commit | 524b53935d0392e7f85f81c18498581cd4fab65e (patch) | |
| tree | 910a0f38ac74b90644a72b6b98bf6a26eed20221 /plugins/cleaners.cpp | |
| parent | 1f8a00581817c8003fd4dcba88d57666d8d7c33b (diff) | |
| download | dfhack-524b53935d0392e7f85f81c18498581cd4fab65e.tar.gz dfhack-524b53935d0392e7f85f81c18498581cd4fab65e.tar.bz2 dfhack-524b53935d0392e7f85f81c18498581cd4fab65e.tar.xz | |
block_index is declared correctly now
Diffstat (limited to 'plugins/cleaners.cpp')
| -rw-r--r-- | plugins/cleaners.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/cleaners.cpp b/plugins/cleaners.cpp index f25c5ae8..52b92de6 100644 --- a/plugins/cleaners.cpp +++ b/plugins/cleaners.cpp @@ -120,8 +120,7 @@ df::map_block *getBlock (int32_t x, int32_t y, int32_t z) return NULL; if ((x >= world->map.x_count) || (y >= world->map.y_count) || (z >= world->map.z_count)) return NULL; - // block_index isn't declared correctly - needs one more level of indirection - return ((df::map_block ****)world->map.block_index)[x >> 4][y >> 4][z]; + return world->map.block_index[x >> 4][y >> 4][z]; } DFhackCExport command_result spotclean (Core * c, vector <string> & parameters) |
