Skip to content

Commit c563ba1

Browse files
committed
Fix #5410
1 parent 48da00e commit c563ba1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/karts/ghost_kart.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,9 @@ void GhostKart::update(int ticks)
247247
// ----------------------------------------------------------------------------
248248
void GhostKart::updateSound(float dt)
249249
{
250-
if (!getController()) return;
250+
if (!getController() ||
251+
World::getWorld()->getPhase() == World::IN_GAME_MENU_PHASE)
252+
return;
251253

252254
GhostController* gc = dynamic_cast<GhostController*>(getController());
253255
if (gc == NULL) return;

0 commit comments

Comments
 (0)