summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/transfor.cc5
-rw-r--r--crawl-ref/source/transfor.h2
2 files changed, 5 insertions, 2 deletions
diff --git a/crawl-ref/source/transfor.cc b/crawl-ref/source/transfor.cc
index 887b42521b..36f067063c 100644
--- a/crawl-ref/source/transfor.cc
+++ b/crawl-ref/source/transfor.cc
@@ -110,7 +110,7 @@ size_type player::transform_size(int psize) const
}
}
-bool transform(int pow, char which_trans)
+bool transform(int pow, transformation_type which_trans)
{
if (you.species == SP_MERFOLK && player_is_swimming()
&& which_trans != TRAN_DRAGON)
@@ -359,6 +359,9 @@ bool transform(int pow, char which_trans)
you.symbol = 'S';
you.colour = RED;
return (true);
+ case TRAN_NONE:
+ case NUM_TRANSFORMATIONS:
+ break;
}
return (false);
diff --git a/crawl-ref/source/transfor.h b/crawl-ref/source/transfor.h
index e292122559..8d62f730c7 100644
--- a/crawl-ref/source/transfor.h
+++ b/crawl-ref/source/transfor.h
@@ -36,7 +36,7 @@ size_type transform_size(int psize = PSIZE_BODY);
/* ***********************************************************************
* called from: ability - spell
* *********************************************************************** */
-bool transform(int pow, char which_trans);
+bool transform(int pow, transformation_type which_trans);
// last updated 12may2000 {dlb}