diff options
Diffstat (limited to 'engines/sci/console.cpp')
| -rw-r--r-- | engines/sci/console.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp index f2e5601c9e..7cf3958257 100644 --- a/engines/sci/console.cpp +++ b/engines/sci/console.cpp @@ -225,8 +225,9 @@ void Console::postEnter() { Graphics::VideoDecoder *videoDecoder = 0; if (_videoFile.hasSuffix(".seq")) { - videoDecoder = new SeqDecoder(); - ((SeqDecoder *)videoDecoder)->setFrameDelay(_videoFrameDelay); + SeqDecoder *seqDecoder = new SeqDecoder(); + seqDecoder->setFrameDelay(_videoFrameDelay); + videoDecoder = seqDecoder; #ifdef ENABLE_SCI32 } else if (_videoFile.hasSuffix(".vmd")) { videoDecoder = new VMDDecoder(g_system->getMixer()); |
