From 17d339b196601cb172df9e3f457f854d5e150f67 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Fri, 29 Apr 2011 21:50:12 -0700 Subject: [PATCH] http://bugs.eressea.de/view.php?id=1851 spy messages have too many arguments --- src/gamecode/spy.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gamecode/spy.c b/src/gamecode/spy.c index e54300826..286a5c107 100644 --- a/src/gamecode/spy.c +++ b/src/gamecode/spy.c @@ -75,7 +75,7 @@ void spy_message(int spy, const unit * u, const unit * target) if (fv && fv != target->faction) { /* wahre Partei */ ADDMSG(&u->faction->msgs, msg_message("spyreport_faction", - "target faction", u, target, target->faction)); + "target faction", target, target->faction)); ql_set_insert(&u->faction->seen_factions, target->faction); } } @@ -94,10 +94,10 @@ void spy_message(int spy, const unit * u, const unit * target) } else { strncat(buf, ", ", sizeof(buf)); } - strncat(buf, (const char *)skillname(sv->id, u->faction->locale), + strncat(buf, (const char *)skillname((skill_t)sv->id, u->faction->locale), sizeof(buf)); strncat(buf, " ", sizeof(buf)); - strncat(buf, itoa10(eff_skill(target, sv->id, target->region)), + strncat(buf, itoa10(eff_skill(target, (skill_t)sv->id, target->region)), sizeof(buf)); } }