Page 1 of 1

MainMenu wierd bug

Posted: Thu Jul 01, 2010 2:57 pm
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)