Fix priest spells menu showing mage spells instead

(thanks to Ir the Great for the Windows side of this patch)
This commit is contained in:
2017-12-16 16:34:01 -05:00
parent 84f44820f8
commit 3e2bf582de
2 changed files with 3 additions and 3 deletions

View File

@@ -236,7 +236,7 @@ void adjust_spell_menus() {
}
for(short i = 0; i < 62; i++)
if(on_spell_menu[1][i] >= 0) {
eSpell spell = cSpell::fromNum(eSkill::MAGE_SPELLS, on_spell_menu[1][i]);
eSpell spell = cSpell::fromNum(eSkill::PRIEST_SPELLS, on_spell_menu[1][i]);
std::ostringstream sout;
sout << " L" << (*spell).level << " - " << (*spell).name() << ", C ";
if((*spell).cost >= 0) sout << (*spell).cost; else sout << '?';

View File

@@ -235,11 +235,11 @@ void adjust_spell_menus() {
}
for(i = 0; i < 62; i++)
if(on_spell_menu[1][i] >= 0) {
eSpell spell = cSpell::fromNum(eSkill::MAGE_SPELLS, on_spell_menu[1][i]);
eSpell spell = cSpell::fromNum(eSkill::PRIEST_SPELLS, on_spell_menu[1][i]);
std::ostringstream sout;
sout << " L" << (*spell).level << " - " << (*spell).name() << ", C ";
if((*spell).cost >= 0) sout << (*spell).cost; else sout << '?';
AppendMenuA(spell_menu, MF_STRING | MF_ENABLED, 2000 + int(spell), sout.str().c_str());
AppendMenuA(spell_menu, MF_STRING | MF_ENABLED, 2900 + int(spell), sout.str().c_str());
}
}