URL:
<http://gna.org/bugs/?16412>
Summary: crash when doing :lua some_global_function()
Project: Battle for Wesnoth
Submitted by: anonymissimus
Submitted on: Donnerstag 12.08.2010 um 17:24
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 rev 45533
Operating System: win xp
_______________________________________________________
Details:
scenario contains
[event]
name=preload
first_time_only=no
[lua]
code=<<
wesnoth.dofile("~add-ons/Testcampaign/utils/lua/global.lua")
>>
[/lua]
[/event]
[event]
name=prestart
[set_menu_item]
id=global
description=_"global"
[command]
[lua]
code=<< global() >>
[/lua]
[/command]
[/set_menu_item]
[/event]
global.lua:
function global()
local message = "here"
wesnoth.fire("message", {speaker = "narrator", message = message})
end
Crash happens when doing
:lua global()
Crash happens not when either commenting the wesnoth.fire(... line and then
doing :lua global() or when calling the function via the right-click menu.
No stderr output.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?16412>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs