Fix crash with ghost replays

This commit is contained in:
Alayan 2018-09-19 01:04:19 +02:00
parent 402cbea3d6
commit 52f5562be8

View File

@ -1836,6 +1836,8 @@ void Kart::setSquash(float time, float slowdown)
void Kart::unsetSquash()
{
#ifndef SERVER_ONLY
if (isGhostKart()) return;
m_squash_time = std::numeric_limits<float>::max();
m_node->setScale(core::vector3df(1.0f, 1.0f, 1.0f));
scene::ISceneNode* node = m_kart_model->getAnimatedNode() ?