Added StoppedNotify()

This fixes scripts waiting for another executing script which fixes Actor being stuck on some animations
This commit is contained in:
smallmodel 2023-11-01 17:19:54 +01:00
parent 7fe7a12167
commit 4695932ea1
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
2 changed files with 12 additions and 1 deletions

View file

@ -76,6 +76,16 @@ ScriptClass::~ScriptClass()
}
}
/*
====================
StoppedNotify
====================
*/
void ScriptClass::StoppedNotify()
{
delete this;
}
/*
====================
Archive

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2023 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -56,6 +56,7 @@ public:
ScriptClass();
~ScriptClass();
void StoppedNotify() override;
void Archive(Archiver &arc) override;
void ArchiveInternal(Archiver &arc);
static void ArchiveScript(Archiver& arc, ScriptClass **obj);