From d08b3c3b229cded61f3abe4efb44329fa762a93a Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Wed, 21 Jun 2023 16:07:49 +1000 Subject: [PATCH] Fix runtime-generated cinematics not working --- source/game/StarPlayer.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/game/StarPlayer.cpp b/source/game/StarPlayer.cpp index 625b8cb..4e29bd2 100644 --- a/source/game/StarPlayer.cpp +++ b/source/game/StarPlayer.cpp @@ -2270,9 +2270,8 @@ void Player::queueRadioMessage(RadioMessage message) { } Maybe Player::pullPendingCinematic() { - if (m_pendingCinematic) - if (auto cinematic = *m_pendingCinematic) - m_log->addCinematic(cinematic.toString()); + if (m_pendingCinematic && m_pendingCinematic->isType(Json::Type::String)) + m_log->addCinematic(m_pendingCinematic->toString()); return take(m_pendingCinematic); }