[Commits] [wesnoth/wesnoth] 675117: Poisoner FAI: prevent passing empty list to min(), ...

GitHub noreply at github.com
Sun Oct 1 20:44:04 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 675117228213f7e2453b8e8b6824255723ffe6af
      https://github.com/wesnoth/wesnoth/commit/675117228213f7e2453b8e8b6824255723ffe6af
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2017-10-01 (Sun, 01 Oct 2017)

  Changed paths:
    M data/ai/formula/poisoner_eval.fai

  Log Message:
  -----------
  Poisoner FAI: prevent passing empty list to min(), fixes #1999

The WFL min() function was changed from returning zero to returning an
error when an empty list is passed as argument (commits eccd3d8e and
fd9f1153).  This adapts the Poisoner FAI code to deal with that
correctly.


  Commit: a673e64d4409a28b3854986303614b51f9e998f5
      https://github.com/wesnoth/wesnoth/commit/a673e64d4409a28b3854986303614b51f9e998f5
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2017-10-01 (Sun, 01 Oct 2017)

  Changed paths:
    M data/ai/formula/level_up_attack_eval.fai
    M data/ai/formula/lib/map_evaluation.fai
    M data/ai/formula/lib/recruitment.fai
    M data/ai/formula/lib/util.fai
    M data/ai/formula/new_recruitment.fai
    M data/ai/formula/opening.fai
    M data/ai/formula/patrol.fai
    M data/ai/formula/poisoner_eval.fai
    M data/ai/formula/recruitment.fai
    M data/ai/formula/scouting_eval.fai
    M data/ai/formula/scouting_move.fai

  Log Message:
  -----------
  FAI files: remove trailing whitespaces


Compare: https://github.com/wesnoth/wesnoth/compare/0c2d3a630ea5...a673e64d4409


More information about the Commits mailing list