Fix crashes when a kart has no wheels

This commit is contained in:
Benau 2015-12-06 13:51:38 +08:00
parent 8a0cbea933
commit 239412327a

View File

@ -327,9 +327,9 @@ void ThreeStrikesBattle::update(float dt)
tire = m_tire_dir+"/wheel-front-right.b3d";
else if(m_insert_tire == 5)
tire = m_tire_dir+"/wheel-rear-right.b3d";
if(!file_manager->fileExists(tire)) continue;
}
core::vector3df tire_xyz = m_tire_position + tire_offset;
core::vector3df tire_hpr = core::vector3df(800.0f,0,
m_tire_rotation *RAD_TO_DEGREE + 180);