summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stash.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-17 04:26:38 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-17 04:26:38 +0000
commit7ea8464463a1b0997287f51c734a5f3ebb4e4f64 (patch)
tree35917b90d1251d379f09b4f5d58d261949b1bf3f /crawl-ref/source/stash.cc
parent4598d26f5507b9578fd030a20b60a49c4818e621 (diff)
downloadcrawl-ref-7ea8464463a1b0997287f51c734a5f3ebb4e4f64.tar.gz
crawl-ref-7ea8464463a1b0997287f51c734a5f3ebb4e4f64.zip
Fix the 'V' command crashing.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8488 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/stash.cc')
-rw-r--r--crawl-ref/source/stash.cc3
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;