diff options
author | Johannes Schickel | 2008-04-29 14:33:29 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-04-29 14:33:29 +0000 |
commit | ca7f7e2a3b6392af526ccbd4a624768e2617c6e9 (patch) | |
tree | 488543cf5ba949aaf720202d0a5a3300dc320b48 /engines/kyra/gui.cpp | |
parent | 4d5c6d1afb3e883a1dad5373144431cacf9a9b97 (diff) | |
download | scummvm-rg350-ca7f7e2a3b6392af526ccbd4a624768e2617c6e9.tar.gz scummvm-rg350-ca7f7e2a3b6392af526ccbd4a624768e2617c6e9.tar.bz2 scummvm-rg350-ca7f7e2a3b6392af526ccbd4a624768e2617c6e9.zip |
Various cleanup.
svn-id: r31772
Diffstat (limited to 'engines/kyra/gui.cpp')
-rw-r--r-- | engines/kyra/gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/gui.cpp b/engines/kyra/gui.cpp index 5581f636b1..cb746f6f0c 100644 --- a/engines/kyra/gui.cpp +++ b/engines/kyra/gui.cpp @@ -309,7 +309,7 @@ void GUI::updateSaveList() { s1 = (*i)[i->size()-3] - '0'; s2 = (*i)[i->size()-2] - '0'; s3 = (*i)[i->size()-1] - '0'; - if (s1 < 0 || s2 < 0 || s3 < 0 || s1 > 9 || s2 > 9 || s3 > 9) + if (!isdigit(s1) || !isdigit(s2) || !isdigit(s3)) continue; _saveSlots.push_back(s1*100+s2*10+s3); } |