From 80bfecb6256d60d47e99db7b63f6c8e3878f8e7d Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Thu, 3 Feb 2011 20:51:59 +0000 Subject: [PATCH] GOB: Fix a regression that broke Lost in Time svn-id: r55760 --- engines/gob/inter_v2.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engines/gob/inter_v2.cpp b/engines/gob/inter_v2.cpp index b56f001ac97..da8ffafbf41 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();