From e9b30cf780ae682597467f78e0d17cce37ecc27d Mon Sep 17 00:00:00 2001 From: Aaron Griffith Date: Mon, 21 Mar 2011 20:34:48 -0400 Subject: [PATCH] changed PyArray_GETPTR3 to getByteArray3D --- src/iterate.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/iterate.c b/src/iterate.c index 6a3e989..76fa417 100644 --- a/src/iterate.c +++ b/src/iterate.c @@ -158,9 +158,7 @@ chunk_render(PyObject *self, PyObject *args) { } else { PyObject *tmp; - /* this should be a pointer to a unsigned char */ - void* ancilData_p = PyArray_GETPTR3(blockdata_expanded, state.x, state.y, state.z); - unsigned char ancilData = *((unsigned char*)ancilData_p); + unsigned char ancilData = getByteArray3D(blockdata_expanded, state.x, state.y, state.z); if (state.block == 85) { /* fence. skip the generate_pseudo_ancildata for now */ continue;