BulletSim: remove exception that can happen when setting physics parameters from the console.

user_profiles
Robert Adams 2013-01-24 12:22:49 -08:00
parent 71f7bfc2ff
commit 3ecfddd791
1 changed files with 2 additions and 2 deletions

View File

@ -917,7 +917,7 @@ public sealed class BSScene : PhysicsScene, IPhysicsParameters
foreach (uint lID in xlIDs)
{
BSPhysObject theObject = null;
PhysObjects.TryGetValue(lID, out theObject);
if (PhysObjects.TryGetValue(lID, out theObject))
thisParam.onObject(this, theObject, xval);
}
}