Fixed new train track bug/crash

This commit is contained in:
dexy 2018-12-11 15:33:39 +11:00
parent 1e2e927cf6
commit 775bbe79a8

View File

@ -69,6 +69,8 @@ namespace CodeWalker.World
get
{
int sc = 0;
if (Nodes != null)
{
foreach (var node in Nodes)
{
if ((node.NodeType == 1) || (node.NodeType == 2) || (node.NodeType == 5))
@ -76,6 +78,7 @@ namespace CodeWalker.World
sc++;
}
}
}
return sc;
}
}