Skip to content

Commit

Permalink
Фикс
Browse files Browse the repository at this point in the history
  • Loading branch information
VaIeroK committed Nov 10, 2022
1 parent d932457 commit 9d2ce65
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions OGF tool/Classes/OGF Chunks/Header.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,14 @@ public void Animated()

public void Static(List<OGF_Child> childs)
{
if (childs.Count == 1)
int childs_count = 0;
foreach (OGF_Child chld in childs)
{
if (!chld.to_delete)
childs_count++;
}

if (childs_count <= 1)
{
StaticSingle(childs);
return;
Expand All @@ -126,7 +133,14 @@ public void Static(List<OGF_Child> childs)

public void StaticSingle(List<OGF_Child> childs)
{
if (childs.Count > 1)
int childs_count = 0;
foreach (OGF_Child chld in childs)
{
if (!chld.to_delete)
childs_count++;
}

if (childs_count > 1)
{
Static(childs);
return;
Expand Down

0 comments on commit 9d2ce65

Please sign in to comment.