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 44cd6483df..f952398b51 100644
--- a/crawl-ref/source/store.cc
+++ b/crawl-ref/source/store.cc
@@ -610,7 +610,7 @@ CrawlVector &CrawlStoreValue::new_vector(store_val_type _type,
#define GET_VAL_PTR(x, _type, value) \
ASSERT((flags & SFLAG_UNSET) || !(flags & SFLAG_CONST_VAL)); \
- if (type != (x)) \
+ if (type != (x) || (flags & SFLAG_UNSET)) \
{ \
if (type == SV_NONE) \
{ \