mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-28 09:49:04 +00:00

The castle switch CA stores the leader move because the evaluation is expensive. If the leader was killed in between storing and reevaluation of the CA, this would previously cause an on-screen error message and the CA to be blacklisted for the turn. This fixes #6440.