From 02eb6893037ce2da9fd70848e2734032283b793e Mon Sep 17 00:00:00 2001 From: zelgadis Date: Wed, 4 Jun 2008 07:18:06 +0000 Subject: Don't assert in CrawlVector::set_max_size() if called more than once on the same vector as long as the new max size is the same as the old one. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5471 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/store.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/store.cc') 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); -- cgit v1.2.3-54-g00ecf