Menu

#1081 Layout object references layout order, not layout

Bug report
open
Ashley
Plugins (124)
5
2009-12-09
2009-11-28
Mr. Ksoft
No

Let's say you have a layout object in Layout #1 referring to Layout #2. You add a third layout and put it before Layout #2 so it is in the second position. Now, the layout object in Layout #1 will load Layout #3 because it is in the second position, where Layout #2 used to be.

Perhaps this is intentional, but it seems like the object should remember what layout, not where in the order it is. This causes problems in games that use layout objects for pause screens, for example, because every time a new layout is added then those layout objects don't load the pause screen any more.

In the attached example, run layout #1, note what you see, then reorder the second and third layouts, then run layout #1 again to see the bug in action.

Discussion

  • Mr. Ksoft

    Mr. Ksoft - 2009-11-28

    Layout referencing bug

     
  • Ashley

    Ashley - 2009-12-09
    • assigned_to: nobody --> ashleysbrain
     

Log in to post a comment.

MongoDB Logo MongoDB