aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sci/video/robot_decoder.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/sci/video/robot_decoder.cpp b/engines/sci/video/robot_decoder.cpp
index 8a0948d962..a99a15a23c 100644
--- a/engines/sci/video/robot_decoder.cpp
+++ b/engines/sci/video/robot_decoder.cpp
@@ -1169,6 +1169,12 @@ bool RobotDecoder::readPartialAudioRecordAndSubmit(const int startFrame, const i
uint16 RobotDecoder::getFrameSize(Common::Rect &outRect) const {
assert(_plane != nullptr);
+
+ if (_screenItemList.size() == 0) {
+ outRect.clip(0, 0);
+ return _numFramesTotal;
+ }
+
outRect = _screenItemList[0]->getNowSeenRect(*_plane);
for (RobotScreenItemList::size_type i = 1; i < _screenItemList.size(); ++i) {
ScreenItem &screenItem = *_screenItemList[i];