forked from github/server
BUG 2369 workaround: do not assert at_mage.
This commit is contained in:
parent
e87a26d961
commit
9d1e1a2e32
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue