URL:
<http://gna.org/bugs/?18701>
Summary: return 0 for length of arrays inside nonexistent
containers
Project: Battle for Wesnoth
Submitted by: sapient
Submitted on: Tue 20 Sep 2011 02:34:43 PM GMT
Category: Bug
Severity: 4 - Important
Priority: 5 - Normal
Item Group: WML
Status: None
Privacy: Public
Assigned to: thonsew
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.9.9
Operating System: win 7 64
_______________________________________________________
Details:
The following code will generate a Lua error.
[C]: in function 'format'
.../Sapient/My Games/Wesnoth1.9.9/data/lua/wml-tags.lua:417: in function
'cmd'
.../Sapient/My Games/Wesnoth1.9.9/data/lua/wml-tags.lua:290: in function
<.../Sapient/My Games/Wesnoth1.9.9/data/lua/wml-tags.lua:254>
As previously stated in bug #13734, the correct behavior is to return 0 for
length of arrays inside nonexistent containers.
[code]
[event]
name=turn 2
[store_unit]
[filter]
[/filter]
mode=append
variable=this.does.not.exist
[/store_unit]
[/event]
[/code]
A quick look at variable.cpp shows there may have been some questionable
changes there.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?18701>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs