fix runaway traverser time

This commit is contained in:
David Rose 2005-05-03 15:40:42 +00:00
parent 701afea306
commit 2d3e344a2a
2 changed files with 3 additions and 2 deletions

View File

@ -24,7 +24,8 @@
////////////////////////////////////////////////////////////////////
INLINE CollisionLevelState::
CollisionLevelState(const NodePath &node_path) :
_node_path(node_path)
_node_path(node_path),
_current(0)
{
}

View File

@ -513,8 +513,8 @@ prepare_colliders(CollisionTraverser::LevelStates &level_states,
// That's the limit. Save off this level state and make a
// new one.
level_states.push_back(level_state);
level_state.reserve(min(num_colliders, max_colliders));
level_state.clear();
level_state.reserve(min(num_colliders, max_colliders));
}
}
}