From 52f5562be8047474c13032cb5c0f014559ab2f17 Mon Sep 17 00:00:00 2001 From: Alayan Date: Wed, 19 Sep 2018 01:04:19 +0200 Subject: [PATCH] Fix crash with ghost replays --- src/karts/kart.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/karts/kart.cpp b/src/karts/kart.cpp index 48dbc6e36..8033daf2f 100644 --- a/src/karts/kart.cpp +++ b/src/karts/kart.cpp @@ -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::max(); m_node->setScale(core::vector3df(1.0f, 1.0f, 1.0f)); scene::ISceneNode* node = m_kart_model->getAnimatedNode() ?