mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Drop error instead of throwing an exception to meet non-throwing exception specification
This commit is contained in:
parent
18e5c6e714
commit
884a76db4c
2 changed files with 4 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue