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

                 Summary: wml_actions.clear_variable should perform variable
substitution
                 Project: Battle for Wesnoth
            Submitted by: anonymissimus
            Submitted on: Dienstag 17.08.2010 um 21:13
                Category: Bug
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group:  None of the others
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: trunk
        Operating System: win xp

    _______________________________________________________

Details:

This doesn't work as expected (affecting wml code blocks fired by lua I
suppose):

        local array = { {bar = 1, foo = "foobar"}, {barfoo = false}, {foofoo = 
2} }
        helper.set_variable_array("array", array)
        wesnoth.set_variable("i", 2)
        wml_actions.clear_variable({name = "array[$i]"})
        array = helper.get_variable_array("array")
        db_ms(array)


The first index is cleared instead. Using 2 directly works however.




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht geschickt von/durch Gna!
  http://gna.org/


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

Reply via email to