summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stash.cc
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-02 17:50:52 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-02 17:50:52 +0000
commite3f71724819986ab6f4999cf728590bb7224ad61 (patch)
tree2378c31e4a72ebb403c84466ef6e2c2942ac3161 /crawl-ref/source/stash.cc
parent8f7d489f3cd6deac14f517f459a991e22d015ed6 (diff)
downloadcrawl-ref-e3f71724819986ab6f4999cf728590bb7224ad61.tar.gz
crawl-ref-e3f71724819986ab6f4999cf728590bb7224ad61.zip
Fixing [1901305] stash search assert. Turned off drawing of tiles items when searching stashes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3504 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/stash.cc')
-rw-r--r--crawl-ref/source/stash.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/stash.cc b/crawl-ref/source/stash.cc
index 264bf86d99..dc51bba7f4 100644
--- a/crawl-ref/source/stash.cc
+++ b/crawl-ref/source/stash.cc
@@ -383,6 +383,13 @@ public:
protected:
void draw_title();
bool process_key(int key);
+
+ void draw_stock_item(int index, const MenuEntry *me) const
+ {
+ // Skip inventory draw function, as tiles code can't currently
+ // handle drawing items that aren't in mitm or in inventory.
+ Menu::draw_stock_item(index, me);
+ }
};
void StashMenu::draw_title()