diff options
Diffstat (limited to 'engines/director/frame.cpp')
-rw-r--r-- | engines/director/frame.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/director/frame.cpp b/engines/director/frame.cpp index e2f3b4cddf..ba53d6d1ee 100644 --- a/engines/director/frame.cpp +++ b/engines/director/frame.cpp @@ -741,7 +741,7 @@ void Frame::renderText(Graphics::ManagedSurface &surface, uint16 spriteId, Commo if (textStream == NULL) return; - TextCast *textCast = _sprites[spriteId]->_textCast; + TextCast *textCast = _sprites[spriteId]->_buttonCast != nullptr ? (TextCast*)_sprites[spriteId]->_buttonCast : _sprites[spriteId]->_textCast; uint32 unk1 = textStream->readUint32(); uint32 strLen = textStream->readUint32(); |