From c26f8150f49936c6037090d321e251fd94abb63b Mon Sep 17 00:00:00 2001
From: Benau <Benau@users.noreply.github.com>
Date: Mon, 19 Dec 2016 11:17:45 +0800
Subject: [PATCH] Fix server only build

---
 src/karts/kart_model.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/karts/kart_model.cpp b/src/karts/kart_model.cpp
index 413dc1fb3..cfdfcc531 100644
--- a/src/karts/kart_model.cpp
+++ b/src/karts/kart_model.cpp
@@ -1028,6 +1028,7 @@ void KartModel::attachHat()
             m_hat_node = irr_driver->addMesh(hat_mesh, "hat");
             bone->addChild(m_hat_node);
             m_animated_node->setCurrentFrame((float)m_animation_frame[AF_STRAIGHT]);
+#ifndef SERVER_ONLY
             STKAnimatedMesh* am = dynamic_cast<STKAnimatedMesh*>(m_animated_node);
             if (am)
             {
@@ -1036,6 +1037,7 @@ void KartModel::attachHat()
                 am->setHardwareSkinning(true);
             }
             else
+#endif
                 m_animated_node->OnAnimate(0);
             bone->updateAbsolutePosition();
              // With the hat node attached to the head bone, we have to