URL:
<http://gna.org/bugs/?15216>
Summary: boolean_equals evaluates uninitilized wml variable
as false
Project: Battle for Wesnoth
Submitted by: anonymissimus
Submitted on: Mittwoch 27.01.2010 um 15:10
Category: Bug
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.7.10
Operating System: Linux
_______________________________________________________
Details:
Although this makes sense somehow (C++ pointers), it doesn't seem to be the
way it is supposed to be (wiki):
* When values are evaluated as boolean values they are checked to see if they
are false or true.
These values are evaluated as false: no, false, off, 0, and 0.0
[event]
name=turn 2
{DEBUG_MSG $Uninitilized}
[if]
[variable]
name=Uninitilized
boolean_equals=no
[/variable]
[then]
{DEBUG_MSG _"$Uninitilized evaluated as false!"}
[/then]
[/if]
[/event]
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?15216>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs