diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-20 10:30:20 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-20 10:30:20 +0000 |
commit | 68b3b5ac3474ceac470591c2a19e8e15b7d9d2ee (patch) | |
tree | 7b2aa907b4ee16c0befbd5c1a66bbf9f814d55d5 /crawl-ref/source/items.cc | |
parent | e3a40721bf278235aa56dc0c39b8f3cb4e6cd179 (diff) | |
download | crawl-ref-68b3b5ac3474ceac470591c2a19e8e15b7d9d2ee.tar.gz crawl-ref-68b3b5ac3474ceac470591c2a19e8e15b7d9d2ee.zip |
Fix assertion when buying items from shops.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8622 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r-- | crawl-ref/source/items.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc index 6bc86ac2aa..53f4381b7f 100644 --- a/crawl-ref/source/items.cc +++ b/crawl-ref/source/items.cc @@ -399,7 +399,7 @@ void unlink_item( int dest ) } else { - ASSERT(in_bounds(mitm[dest].pos)); + ASSERT(in_bounds(mitm[dest].pos) || is_shop_item(mitm[dest])); // Linked item on map: // |