GetSectionBefore order bug

Slate Forums Support GetSectionBefore order bug

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1158
    mike670
    Participant

    Hey,

    I encountered a problem with GetSectionBefore where calling it would skip to a later section rather than the one before it, turns out one section in the list got out of order for some reason. Adding a line to order the list fixed the problem for me:

    There is probably a place further up the class hierarchy that would be better to do this instead of each time this method is run, but works for a quick fix and wanted to let ya know.

    #1166
    Gavalakis
    Keymaster

    Hey,

    Sorry for the late reply and thanks for the report and fix.
    I will try to find and reproduce why this happened in the first place (sections get out of order).
    I can’t think of any way this would happen though. If you have have any leads, please let me know.

    By the way, it would probably be better to add this OrderBy fix at the end of Validate method (in that same CutsceneGroup.cs class), so that it’s not called every time indeed.

    Thanks again!

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.