cr cleanup

This commit is contained in:
ZappoMan 2013-04-30 10:32:55 -07:00
parent 0fd3f00054
commit 5a90dc4487

View file

@ -60,7 +60,7 @@ void VoxelNodeBag::insert(VoxelNode* node) {
if (oldBag) { if (oldBag) {
// copy old elements into the new bag, but leave a space where we need to // copy old elements into the new bag, but leave a space where we need to
// insert the new node // insert the new node
memcpy(_bagElements, oldBag, insertAt*sizeof(VoxelNode*)); memcpy(_bagElements, oldBag, insertAt * sizeof(VoxelNode*));
memcpy(&_bagElements[insertAt+1], &oldBag[insertAt], (_elementsInUse-insertAt) * sizeof(VoxelNode*)); memcpy(&_bagElements[insertAt+1], &oldBag[insertAt], (_elementsInUse-insertAt) * sizeof(VoxelNode*));
} }
} else { } else {