From 6c3d9bbfd8e47f09883166ba605812b0474cfc01 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Tue, 14 Jul 2009 21:20:25 +0000 Subject: [PATCH] PROMOTE fix --- src/common/gamecode/laws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/gamecode/laws.c b/src/common/gamecode/laws.c index 007f2a62c..3bdf576c2 100644 --- a/src/common/gamecode/laws.c +++ b/src/common/gamecode/laws.c @@ -2313,7 +2313,7 @@ promotion_cmd(unit * u, struct order * ord) maxheroes(u->faction), countheroes(u->faction))); return 0; } - if (valid_race(u->faction, u->race)) { + if (!valid_race(u->faction, u->race)) { ADDMSG(&u->faction->msgs, msg_feedback(u, ord, "heroes_race", "race", u->race)); return 0;