[wesnoth-commits] [wesnoth/wesnoth] 55d36a: fix crash in ai code when a side has multiple lead...

GitHub noreply at github.com
Mon Sep 3 20:23:57 UTC 2018


  Branch: refs/heads/1.14
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 55d36aa7d8cfe998c1900559f9b9ffe225d0fcd4
      https://github.com/wesnoth/wesnoth/commit/55d36aa7d8cfe998c1900559f9b9ffe225d0fcd4
  Author: gfgtdf <daniel.gfgtdf at gmail.com>
  Date:   2018-09-03 (Mon, 03 Sep 2018)

  Changed paths:
    M src/ai/default/ca.cpp

  Log Message:
  -----------
  fix crash in ai code when a side has multiple leaders

see https://github.com/wesnoth/wesnoth/issues/3240

Just fixing the crash, not sure how the code should behave in this case, it would be nice if someone who knows more about the ai code would either implement that todo or remove the second warning. An alternative fix would be to move the 'calculate_moves' inside the ai_leaders loop.



      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the Commits mailing list