[wesnoth-commits] [wesnoth/wesnoth] d5d23f: wmllint: fix "local variable 'unit_id' referenced ...
GitHub
noreply at github.com
Tue Jan 22 00:56:39 UTC 2019
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: d5d23fb5238c45573685958d6a1eada3b49bc295
https://github.com/wesnoth/wesnoth/commit/d5d23fb5238c45573685958d6a1eada3b49bc295
Author: Edward Chernenko <edwardspec at gmail.com>
Date: 2019-01-22 (Tue, 22 Jan 2019)
Changed paths:
M data/tools/wmllint
Log Message:
-----------
wmllint: fix "local variable 'unit_id' referenced before assignment"
In global_sanity_check(), variables "unit_id" and "base_unit" can be
used before assignment. This happens, for example, in this WML file:
https://github.com/Dugy/Legend_of_the_Invincibles/blob/master/utils/amla.cfg#L65
... where there is a [/unit_type] tag without the matching [unit_type].
(these variables are normally initialized when [unit_type] is found)
**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