recreate the MarkerNode tree on agent copy

This commit is contained in:
Stephen Birarda 2013-03-28 15:28:55 -07:00
parent 3ead1a5827
commit eec16a8eb5

View file

@ -20,7 +20,7 @@ VoxelAgentData::~VoxelAgentData() {
VoxelAgentData::VoxelAgentData(const VoxelAgentData &otherAgentData) {
memcpy(position, otherAgentData.position, sizeof(float) * 3);
rootMarkerNode = new MarkerNode(*otherAgentData.rootMarkerNode);
rootMarkerNode = new MarkerNode();
}
VoxelAgentData* VoxelAgentData::clone() const {