diff options
author | Neil Moore <neil@s-z.org> | 2014-06-15 16:59:58 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-06-15 17:02:48 -0400 |
commit | 5ad376de10b13581e5e65e5ca1972f2dd2a64d0d (patch) | |
tree | abd4a5aa3968329bce22f0ce170d4ffebdec3725 /crawl-ref/source/mon-act.cc | |
parent | a2b9d63d85366b65346d3dc2c2230b93182eb4a1 (diff) | |
download | crawl-ref-5ad376de10b13581e5e65e5ca1972f2dd2a64d0d.tar.gz crawl-ref-5ad376de10b13581e5e65e5ca1972f2dd2a64d0d.zip |
Don't crash when Jiyvite slimes eat their net (#8692)
Don't destroy the net when breaking free, but only when actually eating
the item later in the function.
Diffstat (limited to 'crawl-ref/source/mon-act.cc')
-rw-r--r-- | crawl-ref/source/mon-act.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-act.cc b/crawl-ref/source/mon-act.cc index 9c34d9db92..f8f8275ad2 100644 --- a/crawl-ref/source/mon-act.cc +++ b/crawl-ref/source/mon-act.cc @@ -2821,7 +2821,8 @@ static bool _monster_eat_item(monster* mons, bool nearby) if (mons->caught() && item_is_stationary_net(*si)) { - mons->del_ench(ENCH_HELD, true); + // We don't want to mulch the net just yet. + mons->del_ench(ENCH_HELD, true, false); eaten_net = true; } } |