Fix crash in Transvoxel mesher when the input block is not cubic
parent
e05fb7a045
commit
40cd4b3b98
|
@ -89,7 +89,7 @@ public:
|
|||
|
||||
ReuseCell &get_reuse_cell(Vector3i pos) {
|
||||
unsigned int j = pos.z & 1;
|
||||
unsigned int i = pos.y * _block_size.y + pos.x;
|
||||
unsigned int i = pos.y * _block_size.x + pos.x;
|
||||
CRASH_COND(i >= _cache[j].size());
|
||||
return _cache[j][i];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue