File tree 2 files changed +8
-1
lines changed
Assets/Scripts/OpenTS2/SimAntics
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,11 @@ public void Tick()
74
74
}
75
75
catch ( Exception e )
76
76
{
77
+ // If we don't have an exception handler just re-throw to avoid swallowing errors.
78
+ if ( ExceptionHandler == null )
79
+ {
80
+ throw ;
81
+ }
77
82
ExceptionHandler ? . Invoke ( e , entity ) ;
78
83
}
79
84
}
Original file line number Diff line number Diff line change @@ -113,12 +113,14 @@ public void Delete()
113
113
public BHAVAsset GetBHAV ( ushort treeID )
114
114
{
115
115
// 0x0XXX is global scope, 0x1XXX is private scope and 0x2XXX is semiglobal scope.
116
- var groupid = SemiGlobalGroupID ;
116
+ uint groupid ;
117
117
118
118
if ( treeID < 0x1000 )
119
119
groupid = GroupIDs . Global ;
120
120
else if ( treeID < 0x2000 )
121
121
groupid = PrivateGroupID ;
122
+ else
123
+ groupid = SemiGlobalGroupID ;
122
124
123
125
return VM . GetBHAV ( treeID , groupid ) ;
124
126
}
You can’t perform that action at this time.
0 commit comments