summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/notes.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-04 23:48:21 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-04 23:48:21 +0000
commite560fb7e6d690c66e525a98013e1362dbb7df455 (patch)
treefe45d70fbdc6872ae79269b1a3fff4f43344a8b6 /crawl-ref/source/notes.cc
parentae8b9d93ae9dfe0df789c4867fbd5aeff695c6df (diff)
downloadcrawl-ref-e560fb7e6d690c66e525a98013e1362dbb7df455.tar.gz
crawl-ref-e560fb7e6d690c66e525a98013e1362dbb7df455.zip
Type safety in mutations (mutation.cc probably needs some overhaul...)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1752 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/notes.cc')
-rw-r--r--crawl-ref/source/notes.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/notes.cc b/crawl-ref/source/notes.cc
index 8658c33ab3..3f3e1124ed 100644
--- a/crawl-ref/source/notes.cc
+++ b/crawl-ref/source/notes.cc
@@ -302,11 +302,13 @@ std::string Note::describe( bool when, bool where, bool what ) const
break;
case NOTE_GET_MUTATION:
result << "Gained mutation: "
- << mutation_name(first, second == 0 ? 1 : second);
+ << mutation_name(static_cast<mutation_type>(first),
+ second == 0 ? 1 : second);
break;
case NOTE_LOSE_MUTATION:
result << "Lost mutation: "
- << mutation_name(first, second == 3 ? 3 : second+1);
+ << mutation_name(static_cast<mutation_type>(first),
+ second == 3 ? 3 : second+1);
break;
case NOTE_USER_NOTE:
result << name;