[Commits] [wesnoth/wesnoth] c1a1d0: fix a bug in the ai context implementation

GitHub noreply at github.com
Tue Jul 1 03:18:30 UTC 2014


  Branch: refs/heads/1.12
  Home:   https://github.com/wesnoth/wesnoth
  Commit: c1a1d028118372d05cdc54426ff0813a07cf8180
      https://github.com/wesnoth/wesnoth/commit/c1a1d028118372d05cdc54426ff0813a07cf8180
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-06-30 (Mon, 30 Jun 2014)

  Changed paths:
    M src/ai/contexts.cpp

  Log Message:
  -----------
  fix a bug in the ai context implementation

The ai was not zeroing out its list of ratings used before it
computes them. Uninitialized values can be arbitrary at run time,
meaning that the ai could silently deviate from its supposed
algorithm.

Issue spotted by coverity.





More information about the Commits mailing list