From 7ea8464463a1b0997287f51c734a5f3ebb4e4f64 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Sat, 17 Jan 2009 04:26:38 +0000 Subject: Fix the 'V' command crashing. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8488 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/stash.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/stash.cc') 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_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; -- cgit v1.2.3-54-g00ecf