summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mapdef.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/mapdef.cc')
-rw-r--r--crawl-ref/source/mapdef.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/mapdef.cc b/crawl-ref/source/mapdef.cc
index 89b9607479..851c9819fe 100644
--- a/crawl-ref/source/mapdef.cc
+++ b/crawl-ref/source/mapdef.cc
@@ -3027,6 +3027,14 @@ std::string keyed_mapspec::set_mask(const std::string &s, bool garbage)
return (err);
}
+ // If not also a KFEAT...
+ if (feat.feats.size() == 0)
+ {
+ feature_spec fsp(-1, 10);
+ fsp.glyph = key_glyph;
+ feat.feats.push_back(fsp);
+ }
+
return (err);
}