Skip to content

Commit

Permalink
Can't access REL sections without populating first
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackJaxDev committed May 27, 2015
1 parent e514f6c commit a97d977
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions BrawlLib/SSBB/ResourceNodes/Modules/RELNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,17 @@ public unsafe class RELNode : ARCEntryNode, ModuleNode
public override ResourceType ResourceType { get { return ResourceType.REL; } }

[Browsable(false)]
public ModuleSectionNode[] Sections { get { return _sections; } }
public ModuleSectionNode[] _sections;
public ModuleSectionNode[] Sections
{
get
{
if (_sections == null)
Populate();
return _sections;
}
}

public ModuleSectionNode[] _sections = null;

public uint _id;
public int _linkNext; //0
Expand Down

0 comments on commit a97d977

Please sign in to comment.