From 148146d94eb3ce2d08cc5383c375b9a7bcd52da9 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 21 Jan 2019 11:00:31 +0100 Subject: [PATCH] BUG 2540: Vertraute ohne Auraim CR repariert --- src/creport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/creport.c b/src/creport.c index 3ac9dffe9..b3445f5e1 100644 --- a/src/creport.c +++ b/src/creport.c @@ -915,7 +915,8 @@ void cr_output_unit(stream *out, const faction * f, if (fval(u, UFL_HUNGER) && (u->faction == f)) { stream_printf(out, "1;hunger\n"); } - if (is_mage(u)) { + mage = get_mage(u); + if (mage) { stream_printf(out, "%d;Aura\n", get_spellpoints(u)); stream_printf(out, "%d;Auramax\n", max_spellpoints_depr(u->region, u)); } @@ -957,7 +958,6 @@ void cr_output_unit(stream *out, const faction * f, } /* spells that this unit can cast */ - mage = get_mage(u); if (mage) { int maxlevel = effskill(u, SK_MAGIC, 0); cr_output_spells(out, u, maxlevel);