aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicola Mettifogo2007-02-19 11:36:31 +0000
committerNicola Mettifogo2007-02-19 11:36:31 +0000
commit85a0a0299638fc2c85021132b6e869da51c23e4d (patch)
tree72fb51d65bba89bd10f6c6eea450e8f05d2c73e5
parentabd20d59fab7cdcfaa3998484c91ff8927ce091c (diff)
downloadscummvm-rg350-85a0a0299638fc2c85021132b6e869da51c23e4d.tar.gz
scummvm-rg350-85a0a0299638fc2c85021132b6e869da51c23e4d.tar.bz2
scummvm-rg350-85a0a0299638fc2c85021132b6e869da51c23e4d.zip
fixed bad implementation
svn-id: r25717
-rw-r--r--engines/parallaction/animation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/parallaction/animation.cpp b/engines/parallaction/animation.cpp
index 9c2e15dc2c..d393ef6d59 100644
--- a/engines/parallaction/animation.cpp
+++ b/engines/parallaction/animation.cpp
@@ -313,7 +313,7 @@ int16 scriptFillBuffers(ArchivedFile *file) {
vCE = readArchivedFileText(vCA, 200, file);
if (vCE == 0) return 0;
- Common::ltrim(vCE);
+ vCE = Common::ltrim(vCE);
} while (strlen(vCE) == 0 || vCE[0] == '#');
_si = 0;
@@ -321,7 +321,7 @@ int16 scriptFillBuffers(ArchivedFile *file) {
vCE = parseNextToken(vCE, _tokens[_si], 40, " \t\n");
if (_tokens[_si][0] == '"' && _tokens[_si][strlen(_tokens[_si])-1] != '"') {
- vCE = parseNextToken(vCE, _tokens[_si], 40, v2);
+ vCE = parseNextToken(vCE, _tokens[_si+1], 40, v2);
strcat(_tokens[_si], _tokens[_si+1]);
_tokens[_si][0] = ' ';
vCE++;