Guard against a strange nullref in ODE

0.6.1-post-fixes
Melanie Thielker 2008-11-19 20:04:41 +00:00
parent 164ed57ad3
commit 6f0e068cf1
1 changed files with 5 additions and 0 deletions

View File

@ -1099,6 +1099,11 @@ namespace OpenSim.Region.Physics.OdePlugin
// Reset the collision values to false
// since we don't know if we're colliding yet
// For some reason this can happen. Don't ask...
//
if (chr == null)
continue;
chr.IsColliding = false;
chr.CollidingGround = false;
chr.CollidingObj = false;