BUG 2369 workaround: do not assert at_mage.

This commit is contained in:
Enno Rehling 2017-10-07 20:44:50 +02:00
parent e87a26d961
commit 9d1e1a2e32
1 changed files with 2 additions and 3 deletions

View File

@ -819,9 +819,8 @@ spskill(char *buffer, size_t size, const struct locale * lang,
bufp = STRLCPY(bufp, " ", size); bufp = STRLCPY(bufp, " ", size);
if (sv->id == SK_MAGIC) { if (sv->id == SK_MAGIC) {
sc_mage *mage = get_mage_depr(u); sc_mage *mage = get_mage(u);
assert(mage); if (mage && mage->magietyp != M_GRAY) {
if (mage->magietyp != M_GRAY) {
bufp = STRLCPY(bufp, LOC(lang, mkname("school", bufp = STRLCPY(bufp, LOC(lang, mkname("school",
magic_school[mage->magietyp])), size); magic_school[mage->magietyp])), size);
bufp = STRLCPY(bufp, " ", size); bufp = STRLCPY(bufp, " ", size);