diff --git a/src/modules/array2d.c b/src/modules/array2d.c index 6ef39894..cbfbf48a 100644 --- a/src/modules/array2d.c +++ b/src/modules/array2d.c @@ -1038,6 +1038,7 @@ static bool chunked_array2d__remove_chunk(int argc, py_Ref argv) { c11_chunked_array2d* self = py_touserdata(argv); c11_vec2i pos = py_tovec2i(&argv[1]); bool ok = c11_chunked_array2d_chunks__del(&self->chunks, pos); + self->last_visited.value = NULL; py_newbool(py_retval(), ok); return true; }