Don't parse [filter_recall] or [event] with [unit]to_variable=

This commit is contained in:
Celtic Minstrel 2016-08-23 14:42:15 -04:00
parent 19e173d1a7
commit 888a3e26cb

View file

@ -881,7 +881,7 @@ WML_HANDLER_FUNCTION(unit,, cfg)
if (!to_variable.blank())
{
parsed_cfg.remove_attribute("to_variable");
unit new_unit(parsed_cfg, true);
unit new_unit(parsed_cfg, true, &cfg);
try
{
config &var = resources::gamedata->get_variable_cfg(to_variable);