mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-12-01 19:32:54 +08:00
Fixed new train track bug/crash
This commit is contained in:
parent
1e2e927cf6
commit
775bbe79a8
@ -69,6 +69,8 @@ namespace CodeWalker.World
|
|||||||
get
|
get
|
||||||
{
|
{
|
||||||
int sc = 0;
|
int sc = 0;
|
||||||
|
if (Nodes != null)
|
||||||
|
{
|
||||||
foreach (var node in Nodes)
|
foreach (var node in Nodes)
|
||||||
{
|
{
|
||||||
if ((node.NodeType == 1) || (node.NodeType == 2) || (node.NodeType == 5))
|
if ((node.NodeType == 1) || (node.NodeType == 2) || (node.NodeType == 5))
|
||||||
@ -76,6 +78,7 @@ namespace CodeWalker.World
|
|||||||
sc++;
|
sc++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return sc;
|
return sc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user