forked from github/server
BUG 2564: show new spells.
This commit is contained in:
parent
a4b4ba3859
commit
5dd12df100
1 changed files with 1 additions and 1 deletions
|
@ -3205,7 +3205,7 @@ static int faction_getmages(faction * f, unit ** results, int numresults)
|
||||||
for (u = f->units; u; u = u->nextF) {
|
for (u = f->units; u; u = u->nextF) {
|
||||||
if (u->number > 0) {
|
if (u->number > 0) {
|
||||||
struct sc_mage * mage = get_mage(u);
|
struct sc_mage * mage = get_mage(u);
|
||||||
if (mage && mage_get_spellbook(mage)) {
|
if (mage) {
|
||||||
int level = effskill(u, SK_MAGIC, NULL);
|
int level = effskill(u, SK_MAGIC, NULL);
|
||||||
if (level > maxlevel) {
|
if (level > maxlevel) {
|
||||||
maxlevel = level;
|
maxlevel = level;
|
||||||
|
|
Loading…
Reference in a new issue