Fixing NullReferenceException regression in the previous commit

0.6.8-post-fixes
John Hurliman 2009-10-29 02:10:48 -07:00
parent 7132877075
commit fd2c99f184
1 changed files with 1 additions and 1 deletions

View File

@ -2367,7 +2367,7 @@ namespace OpenSim.Region.Framework.Scenes
if (m_isChildAgent == false)
{
Vector3 velocity = m_physicsActor.Velocity;
Vector3 velocity = (m_physicsActor != null) ? m_physicsActor.Velocity : Vector3.Zero;
// Throw away duplicate or insignificant updates
if (!m_bodyRot.ApproxEquals(m_lastRotation, ROTATION_TOLERANCE) ||