diff --git a/src/common/gamecode/economy.c b/src/common/gamecode/economy.c index 4137194ca..22886ebb3 100644 --- a/src/common/gamecode/economy.c +++ b/src/common/gamecode/economy.c @@ -389,21 +389,22 @@ expandrecruit(region * r, request * recruitorders) /* centaurs: */ recruits = select_recruitment(&recruitorders, horse_recruiters, &total); if (recruits) { - int horses = rhorses(r) * 2; + int recruited, horses = rhorses(r) * 2; if (totalindividual_messages) { struct individual_message * msg = r->individual_messages; r->individual_messages = msg->next; - free_messagelist(msg->msgs); + if (msg->msgs) free_messagelist(msg->msgs); free(msg); }