diff options
Diffstat (limited to 'crawl-ref/source/traps.cc')
-rw-r--r-- | crawl-ref/source/traps.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/traps.cc b/crawl-ref/source/traps.cc index c4a7cdd1f4..b46a9c59d6 100644 --- a/crawl-ref/source/traps.cc +++ b/crawl-ref/source/traps.cc @@ -1064,6 +1064,9 @@ void clear_trapping_net() if (!you.attribute[ATTR_HELD]) return; + if (!in_bounds(you.pos())) + return; + const int net = get_trapping_net(you.pos()); if (net != NON_ITEM) remove_item_stationary(mitm[net]); |