Skip to content

Commit

Permalink
break after finding body to destroy.
Browse files Browse the repository at this point in the history
  • Loading branch information
urkle committed May 23, 2010
1 parent 99969f9 commit 316de79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sources/physics/PhysicsWorld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ namespace hpl {
pBody->Destroy();
hplDelete(pBody);
mlstBodies.erase(it);
// Should only be one entry in here so bail after finding it.
break;
}
}
}
Expand Down

0 comments on commit 316de79

Please sign in to comment.