[Commits] [wesnoth/wesnoth] 5770fa: ai_helper: check variable type when viewing_side i...
GitHub
noreply at github.com
Wed Oct 12 14:42:39 UTC 2016
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: 5770fa74f0ebb9ce48a17a92d1f7df7944a8ed1c
https://github.com/wesnoth/wesnoth/commit/5770fa74f0ebb9ce48a17a92d1f7df7944a8ed1c
Author: mattsc <mattsc000 at gmail.com>
Date: 2016-10-12 (Wed, 12 Oct 2016)
Changed paths:
M data/ai/lua/ai_helper.lua
Log Message:
-----------
ai_helper: check variable type when viewing_side is required parameter
This is done because the code will not complain but silently produce
non-sensical results if, for example, the filter is passed as the first
argument to get_visible_units().
More information about the Commits
mailing list