block_index is declared correctly now

develop
Quietust 2012-01-11 09:53:28 -06:00
parent 1f8a005818
commit 524b53935d
1 changed files with 1 additions and 2 deletions

@ -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)