debug check for weird timer crash

This commit is contained in:
Evil Factory
2022-06-29 20:22:33 -03:00
parent 3418132b90
commit 4a706c504a
2 changed files with 6 additions and 1 deletions
@@ -61,6 +61,11 @@ namespace Barotrauma
{
while (timedActions.Count > 0)
{
if (timedActions == null)
{
throw new Exception($"timedActions was null, how is this possible? On MainThread: {GameMain.MainThread == System.Threading.Thread.CurrentThread}");
}
TimedAction timedAction = timedActions[0];
if (Time >= timedAction.executionTime)
{