This commit is contained in:
Regalis
2016-04-23 17:33:34 +03:00
parent 8c19adeb5e
commit 5d635f5865
5 changed files with 72 additions and 12 deletions
+13 -10
View File
@@ -86,18 +86,21 @@ namespace Barotrauma
}
}
//try
//{
try
{
Coroutines[i].Coroutine.MoveNext();
// }
}
// catch (Exception e)
// {
//#if DEBUG
// DebugConsole.ThrowError("Coroutine " + Coroutines[i] + " threw an exception: " + e.Message);
//#endif
// Coroutines.RemoveAt(i);
// }
catch (Exception e)
{
DebugConsole.ThrowError("Coroutine " + Coroutines[i] + " threw an exception: " + e.Message);
#if DEBUG
throw e;
#endif
Coroutines.RemoveAt(i);
}
}
}