aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-02-19 07:57:25 -0500
committerPaul Gilbert2015-02-19 07:57:25 -0500
commite17d258217f8605d7722927cd0180b59f87717a5 (patch)
treef163c2987af2b5cf76f53b9c25c5e8d09b6fcc06
parent4c420a70be9124c224723a787d2335053f4986fe (diff)
downloadscummvm-rg350-e17d258217f8605d7722927cd0180b59f87717a5.tar.gz
scummvm-rg350-e17d258217f8605d7722927cd0180b59f87717a5.tar.bz2
scummvm-rg350-e17d258217f8605d7722927cd0180b59f87717a5.zip
XEEN: Fix display of spell names in Spells dialog
-rw-r--r--engines/xeen/dialogs_spells.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/engines/xeen/dialogs_spells.cpp b/engines/xeen/dialogs_spells.cpp
index e25d839a12..5084843319 100644
--- a/engines/xeen/dialogs_spells.cpp
+++ b/engines/xeen/dialogs_spells.cpp
@@ -394,18 +394,16 @@ const char *SpellsDialog::setSpellText(Character *c, int isCasting) {
} else if ((isCasting & 0x7f) == 1) {
switch (c->_class) {
- case 0:
- case 12:
- category = 0;
- break;
- case 1:
- case 3:
+ case CLASS_ARCHER:
+ case CLASS_SORCERER:
category = 1;
break;
- case 7:
- case 8:
+ case CLASS_DRUID:
+ case CLASS_RANGER:
category = 2;
break;
+ case CLASS_PALADIN:
+ case CLASS_CLERIC:
default:
category = 0;
break;