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