Added null-check to GetId

Not the best fallback return value, but meh.
This commit is contained in:
arookas 2016-02-01 01:32:09 -05:00
parent 5483073347
commit 837b2f8c8d

View file

@ -257,6 +257,9 @@ namespace arookas {
return null;
}
static __sunConstants GetId(Node node) {
if (node == null) {
return (__sunConstants)(-1);
}
return (__sunConstants)node.Id;
}