Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 25, 2009, 3:44:42 PM (15 years ago)
Author:
cmueri
Message:

fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/menu/data/gui/scripts/InitialiseGUI.lua

    r6048 r6148  
    174174    if root ~= nil then
    175175        local child
    176         for i=0,root:getChildCount()-1 do
    177             child = root:getChildAtIdx(i)
     176        while root:getChildCount()~=0 do
     177            debug(root:getChildCount())
     178            child = root:getChildAtIdx(0)
    178179            root:removeChildWindow(child)
    179180            newroot:addChildWindow(child)
Note: See TracChangeset for help on using the changeset viewer.