aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorSven Hesse2011-02-03 20:51:59 +0000
committerSven Hesse2011-02-03 20:51:59 +0000
commit80bfecb6256d60d47e99db7b63f6c8e3878f8e7d (patch)
tree085591fa307f544ba9404544b3c3913696b0e7ca /engines
parent11e2f2226c3f162bf630c0d0b2f8b75537c7e451 (diff)
downloadscummvm-rg350-80bfecb6256d60d47e99db7b63f6c8e3878f8e7d.tar.gz
scummvm-rg350-80bfecb6256d60d47e99db7b63f6c8e3878f8e7d.tar.bz2
scummvm-rg350-80bfecb6256d60d47e99db7b63f6c8e3878f8e7d.zip
GOB: Fix a regression that broke Lost in Time
svn-id: r55760
Diffstat (limited to 'engines')
-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();