From 524b53935d0392e7f85f81c18498581cd4fab65e Mon Sep 17 00:00:00 2001 From: Quietust Date: Wed, 11 Jan 2012 09:53:28 -0600 Subject: [PATCH] block_index is declared correctly now --- plugins/cleaners.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/cleaners.cpp b/plugins/cleaners.cpp index f25c5ae87..52b92de6f 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 & parameters)