From 99a4fac85eda1f448a54a8650850637455fdddda Mon Sep 17 00:00:00 2001 From: Deve Date: Thu, 13 Sep 2018 21:07:19 +0200 Subject: [PATCH] Fixed a crash when server was created in GUI. Regression since 7d561de3fbb6c4c4c12ae9e8aa6e67d60f38c512 --- src/karts/kart.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/karts/kart.cpp b/src/karts/kart.cpp index cacdbbe84..b218e465a 100644 --- a/src/karts/kart.cpp +++ b/src/karts/kart.cpp @@ -64,6 +64,7 @@ #include "modes/capture_the_flag.hpp" #include "modes/linear_world.hpp" #include "modes/overworld.hpp" +#include "modes/profile_world.hpp" #include "modes/soccer_world.hpp" #include "network/network_config.hpp" #include "network/race_event_manager.hpp" @@ -3136,6 +3137,9 @@ btQuaternion Kart::getVisualRotation() const void Kart::setOnScreenText(const wchar_t *text) { #ifndef SERVER_ONLY + if (ProfileWorld::isNoGraphics()) + return; + BoldFace* bold_face = font_manager->getFont(); core::dimension2d textsize = bold_face->getDimension(text);