MainMenu wierd bug
Posted: Thu Jul 01, 2010 2:57 pm
In My Stdout.txt I noticed a stack overflow caused from this line (in /special/mainmenu/class/game.lua:
which executed the buttonlist.lua function skipselected which executed select on same
class which....
caused the OnSelect method to execute.... (nice recursion here
)
Now, if I change it to:
It works, But I don't know the implications of that (seems to work fine as of now)
Code: Select all
table.insert(list, { name=mod.name, font=mod_font, description="", fct=function() end, onSelect=function() self.step:skipSelected() end})
class which....
caused the OnSelect method to execute.... (nice recursion here

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})