MainMenu wierd bug

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
shani
Halfling
Posts: 83
Joined: Tue Aug 22, 2006 9:27 am
Location: Israel

MainMenu wierd bug

#1 Post by shani »

In My Stdout.txt I noticed a stack overflow caused from this line (in /special/mainmenu/class/game.lua:

Code: Select all

table.insert(list, { name=mod.name, font=mod_font, description="", fct=function() end, onSelect=function() self.step:skipSelected() end})
which executed the buttonlist.lua function skipselected which executed select on same
class which....

caused the OnSelect method to execute.... (nice recursion here :D )
Now, if I change it to:

Code: Select all

table.insert(list, { name=mod.name, font=mod_font, description="", fct=function() end, onSelect=function()  end})
It works, But I don't know the implications of that (seems to work fine as of now)

Post Reply