summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tags.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-05-08 19:29:27 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-05-08 19:29:27 +0000
commit4693832f9d2a2ece40217c6adadc5855645312fb (patch)
tree309aae5a3f7b1e126d01fb245bfad62933dde897 /crawl-ref/source/tags.cc
parent035aa2aee09dbf78183e61745d0d243af6c01016 (diff)
downloadcrawl-ref-4693832f9d2a2ece40217c6adadc5855645312fb.tar.gz
crawl-ref-4693832f9d2a2ece40217c6adadc5855645312fb.zip
Cleaned up ability handling. It's still rather hacky, but not nearly
as bad as the old horror. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1425 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tags.cc')
-rw-r--r--crawl-ref/source/tags.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc
index ab9a12043f..aefe3e7e70 100644
--- a/crawl-ref/source/tags.cc
+++ b/crawl-ref/source/tags.cc
@@ -1067,7 +1067,8 @@ static void tag_read_you(struct tagHeader &th, char minorVersion)
count_c = unmarshallByte(th);
for (i = 0; i < count_c; i++)
- you.ability_letter_table[i] = unmarshallShort(th);
+ you.ability_letter_table[i] =
+ static_cast<ability_type>(unmarshallShort(th));
// how many skills?
count_c = unmarshallByte(th);