URL:
  <http://gna.org/bugs/?19203>

                 Summary: [store_unit] can interfere with its own filter
                 Project: Battle for Wesnoth
            Submitted by: exasperation
            Submitted on: Mon 19 Dec 2011 03:21:48 AM EST
                Category: Bug
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: WML
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.9.12
        Operating System: all

    _______________________________________________________

Details:

The current implementation of [store_unit] will, if given mode=always_clear
(the default), clear the variable which it will be storing units before
evaluating its filter conditions.  If the filter conditions refer back to the
same variable (using values from a previously stored unit, for example) this
can cause the filter to fail (filters such as this were valid in 1.8).

Attached is a patch which fixes the issue.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 19 Dec 2011 03:21:48 AM EST  Name: store_unit.patch  Size: 1kB  
By: exasperation

<http://gna.org/bugs/download.php?file_id=14744>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?19203>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to