forked from github/server
Crashbug: Magieregeneration fuer tote Magier
This commit is contained in:
parent
1162b6a795
commit
31b8b57b77
|
@ -1431,7 +1431,7 @@ regeneration_magiepunkte(void)
|
||||||
|
|
||||||
for (r = regions; r; r = r->next) {
|
for (r = regions; r; r = r->next) {
|
||||||
for (u = r->units; u; u = u->next) {
|
for (u = r->units; u; u = u->next) {
|
||||||
if (is_mage(u)) {
|
if (u->number && is_mage(u)) {
|
||||||
aura = get_spellpoints(u);
|
aura = get_spellpoints(u);
|
||||||
auramax = max_spellpoints(r, u);
|
auramax = max_spellpoints(r, u);
|
||||||
if (aura < auramax) {
|
if (aura < auramax) {
|
||||||
|
|
Loading…
Reference in New Issue