aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/gob/inter_v2.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/gob/inter_v2.cpp b/engines/gob/inter_v2.cpp
index b56f001ac9..da8ffafbf4 100644
--- a/engines/gob/inter_v2.cpp
+++ b/engines/gob/inter_v2.cpp
@@ -938,7 +938,9 @@ void Inter_v2::o2_setScrollOffset() {
void Inter_v2::o2_playImd() {
VideoPlayer::Properties props;
- Common::String imd = Common::String(_vm->_game->_script->evalString(), 8);
+ Common::String imd = _vm->_game->_script->evalString();
+ if (imd.size() > 8)
+ imd = Common::String(imd.c_str(), 8);
props.x = _vm->_game->_script->readValExpr();
props.y = _vm->_game->_script->readValExpr();