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.h | |
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.h')
-rw-r--r-- | engines/parallaction/parallaction.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/parallaction/parallaction.h b/engines/parallaction/parallaction.h index 4fe4e7d77d..9907f9a956 100644 --- a/engines/parallaction/parallaction.h +++ b/engines/parallaction/parallaction.h @@ -275,9 +275,13 @@ public: ~Table(); + enum { + notFound = 0 + }; + void addData(const char* s); - int16 lookup(const char* s); + int lookup(const char* s); }; struct BackgroundInfo { |