diff options
author | Nicola Mettifogo | 2007-08-13 23:17:17 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-08-13 23:17:17 +0000 |
commit | a2a450dfaec31651a8c84fc6aeccab2816375d2a (patch) | |
tree | 694b7abd5e31f588f757dac65ad50ef1d23fac9f /engines/parallaction/parallaction.cpp | |
parent | 9694215490259a5a7c06d606e909165eb724dd66 (diff) | |
download | scummvm-rg350-a2a450dfaec31651a8c84fc6aeccab2816375d2a.tar.gz scummvm-rg350-a2a450dfaec31651a8c84fc6aeccab2816375d2a.tar.bz2 scummvm-rg350-a2a450dfaec31651a8c84fc6aeccab2816375d2a.zip |
Changed Table to return 0 instead of -1 when lookup fails. Lookup already yields 1-based values when the item is found.
svn-id: r28600
Diffstat (limited to 'engines/parallaction/parallaction.cpp')
-rw-r--r-- | engines/parallaction/parallaction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/parallaction/parallaction.cpp b/engines/parallaction/parallaction.cpp index c09ffba97d..1261086d2f 100644 --- a/engines/parallaction/parallaction.cpp +++ b/engines/parallaction/parallaction.cpp @@ -837,13 +837,13 @@ void Table::addData(const char* s) { } -int16 Table::lookup(const char* s) { +int Table::lookup(const char* s) { for (uint16 i = 0; i < _used; i++) { if (!scumm_stricmp(_data[i], s)) return i + 1; } - return -1; + return notFound; } } // namespace Parallaction |