Page 1 of 1

[bug] Tab Controller: Not checking nil values

Posted: Mon Oct 06, 2008 18:32
by Chryso
Hi,

It seems that if you try to add a tab that is nil (I just had the error because i forgot to do some stuff before) the whole application + game crashes... (which makes debugging your lua code a bit hard when you don't have any dumps and you can't debug :) ).

So, just check for nil values I guess in the addTab and removeTab methods of the Tab Controller.

If the bug has already been reported, just delete the post :)

regards,

Posted: Tue Oct 07, 2008 07:20
by scriptkid
Thanks, sounds like a good catch :)

[edit]ticket: http://www.cegui.org.uk/mantis/view.php?id=232 [/edit]