diff options
author | Max Horn | 2003-12-26 23:11:35 +0000 |
---|---|---|
committer | Max Horn | 2003-12-26 23:11:35 +0000 |
commit | e3e6bb3191f57179874447b4f264721a2bc8a128 (patch) | |
tree | 79599fadda78269c8031aae733574aff65194899 /scumm/script_v5.cpp | |
parent | 706d2f1e5a978c507666f6669aa3e21fc095a82a (diff) | |
download | scummvm-rg350-e3e6bb3191f57179874447b4f264721a2bc8a128.tar.gz scummvm-rg350-e3e6bb3191f57179874447b4f264721a2bc8a128.tar.bz2 scummvm-rg350-e3e6bb3191f57179874447b4f264721a2bc8a128.zip |
got rid of those _maxFOO macros, replaced them by access to the equivalent _numFOO variables
svn-id: r11953
Diffstat (limited to 'scumm/script_v5.cpp')
-rw-r--r-- | scumm/script_v5.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scumm/script_v5.cpp b/scumm/script_v5.cpp index 6bec7e0a28..45a16641c2 100644 --- a/scumm/script_v5.cpp +++ b/scumm/script_v5.cpp @@ -2395,7 +2395,7 @@ void ScummEngine_v5::o5_verbOps() { verb = getVarOrDirectByte(PARAM_1); slot = getVerbSlot(verb, 0); - checkRange(_maxVerbs - 1, 0, slot, "Illegal new verb slot %d"); + checkRange(_numVerbs - 1, 0, slot, "Illegal new verb slot %d"); vs = &_verbs[slot]; vs->verbid = verb; @@ -2490,11 +2490,11 @@ void ScummEngine_v5::o5_verbOps() { case 9: // SO_VERB_NEW slot = getVerbSlot(verb, 0); if (slot == 0) { - for (slot = 1; slot < _maxVerbs; slot++) { + for (slot = 1; slot < _numVerbs; slot++) { if (_verbs[slot].verbid == 0) break; } - if (slot == _maxVerbs) + if (slot == _numVerbs) error("Too many verbs"); } vs = &_verbs[slot]; |