diff options
-rw-r--r-- | crawl-ref/source/stash.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/stash.cc b/crawl-ref/source/stash.cc index 2ab4f40218..34d816657d 100644 --- a/crawl-ref/source/stash.cc +++ b/crawl-ref/source/stash.cc @@ -141,7 +141,8 @@ std::vector<item_def> item_list_in_stash( coord_def pos ) if (ls) { Stash *s = ls->find_stash(pos.x, pos.y); - ret = s->get_items(); + if (s) + ret = s->get_items(); } return ret; |