Browse Source

Don't change the iteration order

Michael Hansen 14 years ago
parent
commit
d5df395e2a
  1. 4
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plPhysical/plCollisionDetector.cpp

4
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plPhysical/plCollisionDetector.cpp

@ -624,7 +624,7 @@ void plObjectInVolumeDetector::IHandleEval(plEvalMsg* pEval)
{ {
plgDispatch::Dispatch()->UnRegisterForExactType(plEvalMsg::Index(), GetKey()); plgDispatch::Dispatch()->UnRegisterForExactType(plEvalMsg::Index(), GetKey());
fWaitingForEval = false; fWaitingForEval = false;
for(bookKeepingList::iterator it= fCollisionList.begin();it!=fCollisionList.end(); it++) for(bookKeepingList::reverse_iterator it= fCollisionList.rbegin();it!=fCollisionList.rend(); it++)
{ {
bool alreadyInside; bool alreadyInside;
ResidentSet::iterator HitIt; ResidentSet::iterator HitIt;
@ -1152,4 +1152,4 @@ hsBool plRidingAnimatedPhysicalDetector::MsgReceive(plMessage *msg)
return true; return true;
} }
return plSimpleRegionSensor::MsgReceive(msg); return plSimpleRegionSensor::MsgReceive(msg);
} }

Loading…
Cancel
Save