mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-26 00:43:00 +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();
|
||||
|
||||
if (chain.EdgeIds != null)
|
||||
{
|
||||
foreach (var edgeId in chain.EdgeIds)
|
||||
{
|
||||
if (edgeId >= rpe.Length)
|
||||
@ -346,6 +348,7 @@ namespace CodeWalker.World
|
||||
|
||||
chainedges.Add(edge);
|
||||
}
|
||||
}
|
||||
|
||||
chain.Edges = chainedges.ToArray();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user