Skip to content

Commit 524b539

Browse files
committed
block_index is declared correctly now
1 parent 1f8a005 commit 524b539

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

plugins/cleaners.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ df::map_block *getBlock (int32_t x, int32_t y, int32_t z)
120120
return NULL;
121121
if ((x >= world->map.x_count) || (y >= world->map.y_count) || (z >= world->map.z_count))
122122
return NULL;
123-
// block_index isn't declared correctly - needs one more level of indirection
124-
return ((df::map_block ****)world->map.block_index)[x >> 4][y >> 4][z];
123+
return world->map.block_index[x >> 4][y >> 4][z];
125124
}
126125

127126
DFhackCExport command_result spotclean (Core * c, vector <string> & parameters)

0 commit comments

Comments
 (0)