Skip to content

Commit 9c2f79a

Browse files
committed
Default to 0 if there is no Console Arc variable
1 parent c5cbcbb commit 9c2f79a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

MOD.Scripts.UI.Tips/MODTipsController.cs

+10-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,16 @@ public List<TipsDataEntry> Tips
4848
}
4949
if (fixedTips != null)
5050
{
51-
fixedTips.TryGetValue(BurikoMemory.Instance.GetFlag("LArc").IntValue(), out List<TipsDataEntry> value);
51+
int arc;
52+
try
53+
{
54+
arc = BurikoMemory.Instance.GetFlag("LConsoleArc").IntValue();
55+
}
56+
catch
57+
{
58+
arc = 0;
59+
}
60+
fixedTips.TryGetValue(arc, out List<TipsDataEntry> value);
5261
return value ?? new List<TipsDataEntry>();
5362
}
5463
return TipsData.Tips;

0 commit comments

Comments
 (0)