diff options
author | Neil Moore <neil@s-z.org> | 2014-06-12 14:05:34 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-06-12 14:06:20 -0400 |
commit | 62da3a1b50ace201ebcccd202515e3685b5e3234 (patch) | |
tree | 84de9535e9db7a32c29ec450f059fce02bebb07b /crawl-ref/source/player-equip.cc | |
parent | e561a6638b9c70b2f3ad265faa83520c7af28226 (diff) | |
download | crawl-ref-62da3a1b50ace201ebcccd202515e3685b5e3234.tar.gz crawl-ref-62da3a1b50ace201ebcccd202515e3685b5e3234.zip |
Don't crash when unwielding a temp-branded weapon.
Diffstat (limited to 'crawl-ref/source/player-equip.cc')
-rw-r--r-- | crawl-ref/source/player-equip.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/player-equip.cc b/crawl-ref/source/player-equip.cc index fa738c12f5..d92c70cdc9 100644 --- a/crawl-ref/source/player-equip.cc +++ b/crawl-ref/source/player-equip.cc @@ -758,7 +758,7 @@ static void _unequip_weapon_effect(item_def& item, bool showMsgs, bool meld) if (you.duration[DUR_WEAPON_BRAND]) { - end_weapon_brand(); + end_weapon_brand(item); // We're letting this through even if hiding messages. mpr("Your temporary branding evaporates."); } |