fix invalid arguments for give/receive messages.

This commit is contained in:
Enno Rehling 2017-03-06 22:24:15 +01:00
parent ba8f51b7d4
commit ce9e2ce314

View file

@ -131,12 +131,12 @@ static void add_give_person(unit * u, unit * u2, int given,
else if (u2->faction != u->faction) { else if (u2->faction != u->faction) {
message *msg; message *msg;
msg = msg_message("give_person", "unit target resource amount", msg = msg_message("give_person", "unit target amount",
u, u2, given); u, u2, given);
add_message(&u->faction->msgs, msg); add_message(&u->faction->msgs, msg);
msg_release(msg); msg_release(msg);
msg = msg_message("receive_person", "unit target resource amount", msg = msg_message("receive_person", "unit target amount",
u, u2, given); u, u2, given);
add_message(&u2->faction->msgs, msg); add_message(&u2->faction->msgs, msg);
msg_release(msg); msg_release(msg);