aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicola Mettifogo2007-02-15 21:42:57 +0000
committerNicola Mettifogo2007-02-15 21:42:57 +0000
commit22c7239796e4804f1cbeb9876d622ee5ff6221a7 (patch)
treeecd47f074c8a12d38d505865d450ebbb5ef5248a
parent5e93000a752d1be20cb2f10d87c0d388c91e717c (diff)
downloadscummvm-rg350-22c7239796e4804f1cbeb9876d622ee5ff6221a7.tar.gz
scummvm-rg350-22c7239796e4804f1cbeb9876d622ee5ff6221a7.tar.bz2
scummvm-rg350-22c7239796e4804f1cbeb9876d622ee5ff6221a7.zip
fixed warning pointed out by _Q
svn-id: r25613
-rw-r--r--engines/parallaction/animation.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/parallaction/animation.cpp b/engines/parallaction/animation.cpp
index 4ef3b0b63e..d5f078c3f8 100644
--- a/engines/parallaction/animation.cpp
+++ b/engines/parallaction/animation.cpp
@@ -302,10 +302,10 @@ int16 scriptFillBuffers(ArchivedFile *file) {
// printf("scriptFillBuffers()\n");
char v2[] = "\"\0";
- for (uint16 _si = 0; _si < 15; _si++)
- _tokens[_si][0] = '\0';
-
int16 _si = 0;
+
+ for (; _si < 15; _si++)
+ _tokens[_si][0] = '\0';
char vCA[200];
char *vCE = NULL;
@@ -316,6 +316,7 @@ int16 scriptFillBuffers(ArchivedFile *file) {
Common::ltrim(vCE);
} while (strlen(vCE) == 0 || vCE[0] == '#');
+ _si = 0;
while (strlen(vCE) > 0 && _si < 20) {
vCE = parseNextToken(vCE, _tokens[_si], 40, " \t\n");
if (_tokens[_si][0] == '"' && _tokens[_si][strlen(_tokens[_si])-1] != '"') {