diff options
-rw-r--r-- | crawl-ref/source/dungeon.cc | 4 | ||||
-rw-r--r-- | crawl-ref/source/mapdef.cc | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc index 49e0e6f90a..59fed1ab5f 100644 --- a/crawl-ref/source/dungeon.cc +++ b/crawl-ref/source/dungeon.cc @@ -5746,6 +5746,10 @@ static void dngn_place_item_explicit(int index, int x, int y, return; } + // Dummy object? + if (spec->base_type == OBJ_UNASSIGNED) + return; + if (spec->level >= 0) level = spec->level; diff --git a/crawl-ref/source/mapdef.cc b/crawl-ref/source/mapdef.cc index 59a6c9289f..0463a13049 100644 --- a/crawl-ref/source/mapdef.cc +++ b/crawl-ref/source/mapdef.cc @@ -710,6 +710,12 @@ item_spec item_list::parse_single_spec(std::string s) if (s == "random" || s == "any") return (result); + if (s == "nothing") + { + result.base_type = OBJ_UNASSIGNED; + return (result); + } + // Check for "any objclass" if (s.find("any ") == 0) { |