* Prevent a vehicle crash

0.6.5-rc1
Teravus Ovares 2009-04-20 06:56:53 +00:00
parent 21d4423030
commit b98f93212b
1 changed files with 13 additions and 0 deletions

View File

@ -248,6 +248,11 @@ namespace OpenSim.Region.Physics.OdePlugin
{
if (m_body == IntPtr.Zero || m_type == Vehicle.TYPE_NONE)
return;
if (m_aMotor != IntPtr.Zero)
{
}
}
@ -292,6 +297,14 @@ namespace OpenSim.Region.Physics.OdePlugin
{
if (m_body == IntPtr.Zero || m_type == Vehicle.TYPE_NONE)
return;
if (m_aMotor != IntPtr.Zero)
{
d.JointDestroy(m_aMotor);
}
if (m_lMotor1 != IntPtr.Zero)
{
d.JointDestroy(m_lMotor1);
}
}