diff options
author | uruk | 2013-07-30 21:32:14 +0200 |
---|---|---|
committer | uruk | 2013-07-30 21:32:14 +0200 |
commit | 7800c4735f7d38efc2f54d8e19b8a5ed2cd9e1c6 (patch) | |
tree | eb769cdc51e06bff8c0c57980836a0f136f3069b /engines | |
parent | 06f86bedb0f6e9a4d0c8858ff0c61a22ecb464c3 (diff) | |
download | scummvm-rg350-7800c4735f7d38efc2f54d8e19b8a5ed2cd9e1c6.tar.gz scummvm-rg350-7800c4735f7d38efc2f54d8e19b8a5ed2cd9e1c6.tar.bz2 scummvm-rg350-7800c4735f7d38efc2f54d8e19b8a5ed2cd9e1c6.zip |
AVALANCHE: Repair Acci::parse().
Diffstat (limited to 'engines')
-rw-r--r-- | engines/avalanche/acci2.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/avalanche/acci2.cpp b/engines/avalanche/acci2.cpp index 86600d62dc..45518fb485 100644 --- a/engines/avalanche/acci2.cpp +++ b/engines/avalanche/acci2.cpp @@ -454,10 +454,12 @@ void Acci::parse() { cc = c; c.toUppercase(); while (!c.empty()) { - while ((c[0] == ' ') && (!c.empty())) { + while ((!c.empty()) && (c[0] == ' ')) { c.deleteChar(0); cc.deleteChar(0); } + if (c.empty()) + break; // Get the following word of the strings. byte size = pos(Common::String(' '), c) + 1; |