summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ability.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2014-01-14 00:09:42 +0100
committerAdam Borowski <kilobyte@angband.pl>2014-01-14 00:09:42 +0100
commit0e571ff05e4a4aec1f24bb4515889fc653f06762 (patch)
treec6730fe60ab6f6979444b5ec2bd441cc6230cb63 /crawl-ref/source/ability.cc
parent54cbe9b7318e5363a2f6863dad6b99a1af0c8e45 (diff)
downloadcrawl-ref-0e571ff05e4a4aec1f24bb4515889fc653f06762.tar.gz
crawl-ref-0e571ff05e4a4aec1f24bb4515889fc653f06762.zip
Hush a warning.
Diffstat (limited to 'crawl-ref/source/ability.cc')
-rw-r--r--crawl-ref/source/ability.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/ability.cc b/crawl-ref/source/ability.cc
index c23234e95c..006c1b3358 100644
--- a/crawl-ref/source/ability.cc
+++ b/crawl-ref/source/ability.cc
@@ -1426,7 +1426,7 @@ static bool _check_ability_possible(const ability_def& abil,
// in case of mp rot ability, check is the player have enough natural MP
// (avoid use of ring/staf of magical power)
if ((abil.flags & ABFLAG_PERMANENT_MP)
- && get_real_mp(false) < abil.mp_cost)
+ && get_real_mp(false) < (int)abil.mp_cost)
{
if (!quiet)
mpr("You haven't enough innate magic capacity to sacrifice.");