Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. *Read more...*

Bug #721949 » 0001-Fix-crash-when-former-ferry-leader-activates.patch

S2_5 - Marko Lindqvist, 2018-01-01 05:25 PM

View differences:

ai/default/aiferry.c
* a chain) ferry was in. */
if (unit_alive(ferry_id) && 0 < ferry->moves_left
&& (!alive || unit_tile(ferry) != unit_tile(passenger))) {
int pass_id = passenger->id;
/* The passenger is no longer on the ferry,
* and the ferry can still act.
* Give a chance for another passenger to take command
......
*/
UNIT_LOG(LOG_DEBUG, ferry, "Activating passengers");
dai_activate_passengers(ait, ferry);
/* It is theoretically possible passenger died here due to
* autoattack against another passing unit at its location. */
alive = unit_alive(pass_id);
}
}
/* else at sea */
(3-3/4)