you want arcInfo != null instead of arcInfo == null

This commit is contained in:
JohnCorby 2022-07-18 12:13:58 -07:00
parent 613cd45ebc
commit b2fb622bbb

View File

@ -365,7 +365,7 @@ namespace NewHorizons.Builder.Props
{ {
GameObject arc; GameObject arc;
var type = arcInfo != null ? arcInfo.type : PropModule.NomaiTextArcInfo.NomaiTextArcType.Adult; var type = arcInfo != null ? arcInfo.type : PropModule.NomaiTextArcInfo.NomaiTextArcType.Adult;
var variation = arcInfo == null ? arcInfo.variation : -1; var variation = arcInfo != null ? arcInfo.variation : -1;
switch (type) switch (type)
{ {
case PropModule.NomaiTextArcInfo.NomaiTextArcType.Child: case PropModule.NomaiTextArcInfo.NomaiTextArcType.Child: