mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-07-07 18:31:23 +08:00
Fix for loading scenarios with empty chains
This commit is contained in:
parent
eb12b5ddcd
commit
9904b619c1
|
@ -319,6 +319,8 @@ namespace CodeWalker.World
|
||||||
{
|
{
|
||||||
chainedges.Clear();
|
chainedges.Clear();
|
||||||
|
|
||||||
|
if (chain.EdgeIds != null)
|
||||||
|
{
|
||||||
foreach (var edgeId in chain.EdgeIds)
|
foreach (var edgeId in chain.EdgeIds)
|
||||||
{
|
{
|
||||||
if (edgeId >= rpe.Length)
|
if (edgeId >= rpe.Length)
|
||||||
|
@ -346,6 +348,7 @@ namespace CodeWalker.World
|
||||||
|
|
||||||
chainedges.Add(edge);
|
chainedges.Add(edge);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
chain.Edges = chainedges.ToArray();
|
chain.Edges = chainedges.ToArray();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user