mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-21 15:00:26 +02:00
Drop error instead of throwing an exception to meet non-throwing exception specification
This commit is contained in:
2 files changed
+4
-2
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user