mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Compare with STATE_RUNNING instead
This commit is contained in:
parent
220c82954c
commit
dd1f8bd92a
1 changed files with 1 additions and 1 deletions
|
@ -1926,7 +1926,7 @@ void ScriptVM::Suspend()
|
|||
{
|
||||
if (state == STATE_DESTROYED) {
|
||||
ScriptError("Cannot suspend a dead thread.");
|
||||
} else if (!state) {
|
||||
} else if (state == STATE_RUNNING) {
|
||||
state = STATE_SUSPENDED;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue