Clear state variables used by the LIMIT_RECRUITS WML macro on victory

This commit is contained in:
Ignacio R. Morelle 2014-01-13 02:20:52 -03:00
parent 092031e5e1
commit 003aa541f0
2 changed files with 10 additions and 0 deletions

View File

@ -18,6 +18,8 @@ Version 1.11.8+dev:
* Fixed possible invalid memory access issue in the MP sides configuration
code causing crashes for some users (bug #21449).
* Fixed broken image references in the Gameplay -> Time of Day help topic.
* The internal variables used by the LIMIT_RECRUITS WML macro are now
cleared on victory.
Version 1.11.8:
* Add-ons client:

View File

@ -102,6 +102,14 @@
{VARIABLE side_{SIDE}_limited_recruits_length -1}
[/event]
[event]
name=victory
# Clear our variables on victory
{CLEAR_VARIABLE side_{SIDE}_limited_recruits,side_{SIDE}_limited_recruits_length}
[/event]
# when the side recruits this given type for the first time, it's recorded
# in an array that holds info on all the recruit-limited types for this side