diff --git a/src/reports.h b/src/reports.h index 3af4b4035..2c71803c3 100644 --- a/src/reports.h +++ b/src/reports.h @@ -87,8 +87,6 @@ extern "C" { const struct locale *lang); size_t report_status(const struct unit *u, const struct locale *lang, char *buf, size_t siz); - const char *report_kampfstatus(const struct unit *u, - const struct locale *lang); // FIXME: kill this (static variable) void register_reports(void); diff --git a/src/spy.c b/src/spy.c index 572f362df..eeca4e1d1 100644 --- a/src/spy.c +++ b/src/spy.c @@ -59,10 +59,12 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * Spionage des Spions */ void spy_message(int spy, const unit * u, const unit * target) { - const char *str = report_kampfstatus(target, u->faction->locale); // FIXME: use report_status instead + char status[32]; + + report_status(target, u->faction->locale, status, sizeof(status)); ADDMSG(&u->faction->msgs, msg_message("spyreport", "spy target status", u, - target, str)); + target, status)); if (spy > 20) { sc_mage *mage = get_mage(target); /* for mages, spells and magic school */