forked from github/server
Merge pull request #733 from ennorehling/develop
BUG 2369 workaround: do not assert at_mage.
This commit is contained in:
commit
06067655a3
|
@ -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