diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-07-17 02:00:51 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-07-17 02:00:51 +0200 |
commit | 33d5514f9e539166431fe5a78a49c9ad879cb27d (patch) | |
tree | 5eb9f574d8494e8b03ac2018bb044524d09a44fa /crawl-ref/source/wiz-fsim.cc | |
parent | 0e7fb9496946f68602dbdddcf5182070038e0492 (diff) | |
download | crawl-ref-33d5514f9e539166431fe5a78a49c9ad879cb27d.tar.gz crawl-ref-33d5514f9e539166431fe5a78a49c9ad879cb27d.zip |
Revert accidental unconstification.
An interface to allow choosing between charged/empty/recharging would be
nice but I don't volunteer here: one-off code was enough for my purposes.
I just failed to restore this single line.
Diffstat (limited to 'crawl-ref/source/wiz-fsim.cc')
-rw-r--r-- | crawl-ref/source/wiz-fsim.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/wiz-fsim.cc b/crawl-ref/source/wiz-fsim.cc index 77551715f6..4af3fd9f1e 100644 --- a/crawl-ref/source/wiz-fsim.cc +++ b/crawl-ref/source/wiz-fsim.cc @@ -306,7 +306,7 @@ static fight_data _get_fight_data(monster &mon, int iter_limit, bool defend) fdata.max_dam = 0; const int weapon = you.equip[EQ_WEAPON]; - item_def *iweap = weapon != -1 ? &you.inv[weapon] : NULL; + const item_def *iweap = weapon != -1 ? &you.inv[weapon] : NULL; const int missile = you.m_quiver->get_fire_item(); // now make sure the player is ready |