Drop error instead of throwing an exception to meet non-throwing exception specification

This commit is contained in:
smallmodel committed 2024-06-07 19:55:33 +02:00
1 parent 18e5c6e714
commit 884a76db4c
2 files changed
+4 -2

No files matched your search

+2 -1
View File
@@ -89,7 +89,8 @@ ScriptClass::ScriptClass()
ScriptClass::~ScriptClass()
{
if (m_Script == NULL) {
throw ScriptException("Attempting to delete dead class.");
//throw ScriptException("Attempting to delete dead class.");
gi.Error(ERR_DROP, "Attempting to delete a dead thread.");
}
KillThreads();