From 9d1e1a2e32dfeab05c3e1dfb49bcd28a501b1fe4 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 7 Oct 2017 20:44:50 +0200 Subject: [PATCH] BUG 2369 workaround: do not assert at_mage. --- src/reports.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/reports.c b/src/reports.c index 3d762a4ce..1182f89c9 100644 --- a/src/reports.c +++ b/src/reports.c @@ -819,9 +819,8 @@ spskill(char *buffer, size_t size, const struct locale * lang, bufp = STRLCPY(bufp, " ", size); if (sv->id == SK_MAGIC) { - sc_mage *mage = get_mage_depr(u); - assert(mage); - if (mage->magietyp != M_GRAY) { + sc_mage *mage = get_mage(u); + if (mage && mage->magietyp != M_GRAY) { bufp = STRLCPY(bufp, LOC(lang, mkname("school", magic_school[mage->magietyp])), size); bufp = STRLCPY(bufp, " ", size);