[Commits] [wesnoth/wesnoth] 1c1429: fix a bug in the ai context implementation
GitHub
noreply at github.com
Tue Jul 1 03:03:12 UTC 2014
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: 1c142991acad0800b74ae39ee729b36ff1f4a2ef
https://github.com/wesnoth/wesnoth/commit/1c142991acad0800b74ae39ee729b36ff1f4a2ef
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