diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-14 07:52:00 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-14 07:52:00 +0000 |
commit | 07cd5056664cc32435043eb78282a5831eda545e (patch) | |
tree | 9b9921d9bf0658e84959343fab25ba902047278f /crawl-ref/source/store.cc | |
parent | a80ff6341075008c60dfd2efc6a43dd65ba90903 (diff) | |
download | crawl-ref-07cd5056664cc32435043eb78282a5831eda545e.tar.gz crawl-ref-07cd5056664cc32435043eb78282a5831eda545e.zip |
The clear() methods should clear the default_flags and type members,
as well as clearing out the contained values.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2458 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/store.cc')
-rw-r--r-- | crawl-ref/source/store.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/store.cc b/crawl-ref/source/store.cc index 912369b27a..a212a3da19 100644 --- a/crawl-ref/source/store.cc +++ b/crawl-ref/source/store.cc @@ -1206,6 +1206,8 @@ void CrawlHashTable::clear() ASSERT(!(i->second.flags & SFLAG_NO_ERASE)); hash_map.clear(); + default_flags = 0; + type = SV_NONE; } CrawlHashTable::iterator CrawlHashTable::begin() @@ -1540,6 +1542,8 @@ void CrawlVector::clear() ASSERT(!(vector[i].flags & SFLAG_NO_ERASE)); vector.clear(); + default_flags = 0; + type = SV_NONE; } CrawlVector::iterator CrawlVector::begin() |