aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJohannes Schickel2008-02-07 21:28:51 +0000
committerJohannes Schickel2008-02-07 21:28:51 +0000
commit56c5d86431eff7a0e685ef947006e4db97d57107 (patch)
treee105f5e3b53cd33f4bba662e20f2d155bbdc2a52 /common
parent7500103298638d60d4fa20a4d35695975e498e6a (diff)
downloadscummvm-rg350-56c5d86431eff7a0e685ef947006e4db97d57107.tar.gz
scummvm-rg350-56c5d86431eff7a0e685ef947006e4db97d57107.tar.bz2
scummvm-rg350-56c5d86431eff7a0e685ef947006e4db97d57107.zip
Fix bug preventing compilation in iterator code.
svn-id: r30818
Diffstat (limited to 'common')
-rw-r--r--common/hashmap.h3
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;