- combatspells with level 0 are lost
This commit is contained in:
Enno Rehling 2008-05-11 21:50:26 +00:00
parent 0af00c10ec
commit 0c47aab8a2

View file

@ -229,7 +229,7 @@ read_mage(attrib * a, struct storage * store)
sp = find_spell(mage->magietyp, spname); sp = find_spell(mage->magietyp, spname);
} }
} }
if (sp && level>0) { if (sp && level>=0) {
int slot = -1; int slot = -1;
if (sp->sptyp & PRECOMBATSPELL) slot = 0; if (sp->sptyp & PRECOMBATSPELL) slot = 0;
else if (sp->sptyp & COMBATSPELL) slot = 1; else if (sp->sptyp & COMBATSPELL) slot = 1;