diff options
| author | Travis Howell | 2004-07-31 08:55:08 +0000 |
|---|---|---|
| committer | Travis Howell | 2004-07-31 08:55:08 +0000 |
| commit | e7d9bdbee372e8268e34f9f54c46b257e7e805ba (patch) | |
| tree | fa3909ae57713265e210bee1faf2101cdb40e90f /simon | |
| parent | be6da23092863532f0778cc20a1ec10bc545d7fe (diff) | |
| download | scummvm-rg350-e7d9bdbee372e8268e34f9f54c46b257e7e805ba.tar.gz scummvm-rg350-e7d9bdbee372e8268e34f9f54c46b257e7e805ba.tar.bz2 scummvm-rg350-e7d9bdbee372e8268e34f9f54c46b257e7e805ba.zip | |
Avoid gcc warning
svn-id: r14373
Diffstat (limited to 'simon')
| -rw-r--r-- | simon/simon.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp index 5548b5714c..445bd15538 100644 --- a/simon/simon.cpp +++ b/simon/simon.cpp @@ -4183,7 +4183,7 @@ void SimonEngine::talk_with_text(uint vga_sprite_id, uint color, const char *str char *convertedString2 = convertedString; int16 height, len_div_3; int stringLength = strlen(string); - int pos, padding, lettersPerRow, lettersPerRowJustified; + int padding, lettersPerRow, lettersPerRowJustified; const int textHeight = 10; height = textHeight; @@ -4205,6 +4205,7 @@ void SimonEngine::talk_with_text(uint vga_sprite_id, uint color, const char *str assert(stringLength > 0); while (stringLength > 0) { + int pos = 0; if (stringLength > lettersPerRow) { int removeLastWord = 0; if (lettersPerRow > lettersPerRowJustified) { |
