aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2006-03-24 14:17:47 +0000
committerMax Horn2006-03-24 14:17:47 +0000
commit1805f42eea81d69a0285ab57d655dfb40e9de0f5 (patch)
treebb7a543d624c0b2192fee4840332f7bb80e5dbf9 /common
parent08ad918af6f5e35d959177b82236965a3048eab9 (diff)
downloadscummvm-rg350-1805f42eea81d69a0285ab57d655dfb40e9de0f5.tar.gz
scummvm-rg350-1805f42eea81d69a0285ab57d655dfb40e9de0f5.tar.bz2
scummvm-rg350-1805f42eea81d69a0285ab57d655dfb40e9de0f5.zip
Oops, accidentally commited the wrong patch (had these lines commented out for testing)
svn-id: r21427
Diffstat (limited to 'common')
-rw-r--r--common/assocarray.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/assocarray.h b/common/assocarray.h
index 4fe4ae93a3..5cc3340c9f 100644
--- a/common/assocarray.h
+++ b/common/assocarray.h
@@ -199,14 +199,14 @@ inline Val *AssocArray <Key, Val>::new_all_values(void) const {
template <class Key, class Val>
inline AssocArray <Key, Val>::AssocArray(Val default_value) : _default_value(default_value) {
-// int ctr;
+ int ctr;
_arr = new aa_ref_t <Key, Val> *[INIT_SIZE];
-// for (ctr = 0; ctr < INIT_SIZE; ctr++)
-// _arr[ctr] = NULL;
+ for (ctr = 0; ctr < INIT_SIZE; ctr++)
+ _arr[ctr] = NULL;
-// assert(_arr != NULL);
+ assert(_arr != NULL);
_arrsize = INIT_SIZE;
_nele = 0;