Fix runtime-generated cinematics not working
This commit is contained in:
parent
391527d812
commit
d08b3c3b22
@ -2270,9 +2270,8 @@ void Player::queueRadioMessage(RadioMessage message) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Maybe<Json> Player::pullPendingCinematic() {
|
Maybe<Json> Player::pullPendingCinematic() {
|
||||||
if (m_pendingCinematic)
|
if (m_pendingCinematic && m_pendingCinematic->isType(Json::Type::String))
|
||||||
if (auto cinematic = *m_pendingCinematic)
|
m_log->addCinematic(m_pendingCinematic->toString());
|
||||||
m_log->addCinematic(cinematic.toString());
|
|
||||||
return take(m_pendingCinematic);
|
return take(m_pendingCinematic);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user