diff options
author | Johannes Schickel | 2008-02-07 21:28:51 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-02-07 21:28:51 +0000 |
commit | 56c5d86431eff7a0e685ef947006e4db97d57107 (patch) | |
tree | e105f5e3b53cd33f4bba662e20f2d155bbdc2a52 | |
parent | 7500103298638d60d4fa20a4d35695975e498e6a (diff) | |
download | scummvm-rg350-56c5d86431eff7a0e685ef947006e4db97d57107.tar.gz scummvm-rg350-56c5d86431eff7a0e685ef947006e4db97d57107.tar.bz2 scummvm-rg350-56c5d86431eff7a0e685ef947006e4db97d57107.zip |
Fix bug preventing compilation in iterator code.
svn-id: r30818
-rw-r--r-- | common/hashmap.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/hashmap.h b/common/hashmap.h index 4f1122a088..d4e418e1d5 100644 --- a/common/hashmap.h +++ b/common/hashmap.h @@ -140,7 +140,7 @@ public: Node *deref() const { assert(_hashmap != 0); - assert(_idx < _arrsize); + assert(_idx < _hashmap->_arrsize); Node *node = _hashmap->_arr[_idx]; assert(node != 0); return node; @@ -197,6 +197,7 @@ public: const Node *deref() const { assert(_hashmap != 0); + assert(_idx < _hashmap->_arrsize); const Node *node = _hashmap->_arr[_idx]; assert(node != 0); return node; |