summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/store.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/store.cc')
-rw-r--r--crawl-ref/source/store.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/store.cc b/crawl-ref/source/store.cc
index 70ff742ddb..63935079f5 100644
--- a/crawl-ref/source/store.cc
+++ b/crawl-ref/source/store.cc
@@ -1471,7 +1471,7 @@ void CrawlVector::assert_validity() const
void CrawlVector::set_max_size(vec_size _size)
{
ASSERT(_size > 0);
- ASSERT(max_size == VEC_MAX_SIZE);
+ ASSERT(max_size == VEC_MAX_SIZE || max_size == _size);
max_size = _size;
vector.reserve(max_size);