]> git.pond.sub.org Git - empserver/commit
Don't let embarked land units fight a che revolt
authorMarkus Armbruster <armbru@pond.sub.org>
Thu, 13 May 2010 18:12:19 +0000 (20:12 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 13 May 2010 18:12:19 +0000 (20:12 +0200)
commit93d033cff4e961c2d9abbd991f103ae59682dba7
treef3f1d8f1c8b035221abaf58624e03b0ed0fc25cb
parent10f5000aa12ca243b8dd95e0967f5a5dcdd11ddf
Don't let embarked land units fight a che revolt

When take_casualties() kills a land unit, it neglects to take it off
its carrier.  This triggers an oops in unit_cargo_init().  Instead of
fixing this, just don't let them fight.  They can't defend against
other attacks, either.
src/lib/update/revolt.c