URL:
<http://gna.org/bugs/?15289>
Summary: lua: unit_var.__cfg.x, unit_var.__cfg.y don't work
Project: Battle for Wesnoth
Submitted by: anonymissimus
Submitted on: Samstag 06.02.2010 um 03:12
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.12
Operating System: Linux
_______________________________________________________
Details:
I did as advised by silene - this seems to be a bug, since the other usual
attributes in unit containers work:
local Hamel = wesnoth.get_units({id=Hamel})
wesnoth.message(Hamel[1].x)--as expected
wesnoth.message(tostring(Hamel[1].canrecruit))--as expected
wesnoth.message(Hamel[1].__cfg.x)--nothing!
wesnoth.message(Hamel[1].__cfg.y)--nothing!
wesnoth.message(Hamel[1].__cfg.advances_to)--as expected
wesnoth.message(Hamel[1].__cfg.experience)--as expected
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?15289>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs