aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2008-05-28 18:32:05 +0000
committerWillem Jan Palenstijn2008-05-28 18:32:05 +0000
commit90bf3de2d66a6605fad7f6a050fae6d277d15f56 (patch)
tree344f092bbde67ff93d3ff8c2c1b64310ed864879 /common
parent16b0905bb0b5e164a2014031749a61c24c6af32b (diff)
downloadscummvm-rg350-90bf3de2d66a6605fad7f6a050fae6d277d15f56.tar.gz
scummvm-rg350-90bf3de2d66a6605fad7f6a050fae6d277d15f56.tar.bz2
scummvm-rg350-90bf3de2d66a6605fad7f6a050fae6d277d15f56.zip
Decrement _nele when erasing an element from hashmap, and add a test-case for this bug.
svn-id: r32343
Diffstat (limited to 'common')
-rw-r--r--common/hashmap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/hashmap.h b/common/hashmap.h
index 81a4b0d17e..1bae44e98e 100644
--- a/common/hashmap.h
+++ b/common/hashmap.h
@@ -535,6 +535,7 @@ void HashMap<Key, Val, HashFunc, EqualFunc>::erase(const Key &key) {
}
}
_arr[i] = NULL;
+ _nele--;
return;
}