update/revolt: Fix land unit casualties
Fix the bug demonstrated by the previous commit:
take_casualties_from_lands() limits total casualties to @each. It
should limit each land unit's casualties, and only if !may_kill. This
can lead to fewer casualties than called for; oops in
take_casualties(). Broken in commit 025e9cc25
, v4.4.0.
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
d111522fe8
commit
60429028e7
4 changed files with 16 additions and 16 deletions
|
@ -39,8 +39,6 @@ tester@127.0.0.1 logged in as country #0
|
|||
Triggering unscheduled update
|
||||
production update (60 ETUs)
|
||||
preparing sectors...
|
||||
Oops: taken < mc in ../src/lib/update/revolt.c:471
|
||||
Crash dump complete
|
||||
done preparing sectors.
|
||||
producing for countries...
|
||||
done producing for countries.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue