summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells4.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-03 04:01:24 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-03 04:01:24 +0000
commitbb02d6cc90ebbb48b95f2105a3496c5069bb9328 (patch)
treee879a91917ce2d21430e0327153d7c6234597ed6 /crawl-ref/source/spells4.cc
parent63e312c909cf2d91461e1b17b6e4c4a71a8250a0 (diff)
downloadcrawl-ref-bb02d6cc90ebbb48b95f2105a3496c5069bb9328.tar.gz
crawl-ref-bb02d6cc90ebbb48b95f2105a3496c5069bb9328.zip
Add type fix: attacking targets are unsigned ints, not ints.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5447 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells4.cc')
-rw-r--r--crawl-ref/source/spells4.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc
index 7864c322d3..8f8c30df7b 100644
--- a/crawl-ref/source/spells4.cc
+++ b/crawl-ref/source/spells4.cc
@@ -482,10 +482,10 @@ void cast_sticks_to_snakes(int pow)
return;
}
- const beh_type beha = item_cursed( you.inv[ weapon ] ) ? BEH_HOSTILE :
- BEH_FRIENDLY;
- const int hitting = (beha == BEH_HOSTILE) ? MHITYOU :
- you.pet_target;
+ const beh_type beha = item_cursed( you.inv[ weapon ] ) ? BEH_HOSTILE
+ : BEH_FRIENDLY;
+ const unsigned int hitting = (beha == BEH_HOSTILE) ? MHITYOU
+ : you.pet_target;
if ((you.inv[ weapon ].base_type == OBJ_MISSILES
&& (you.inv[ weapon ].sub_type == MI_ARROW)))