ASYLUM: Fixed script reset while changing scenes.
This prevents a lot of fault script actions.
This commit is contained in:
parent
59cfa7ce66
commit
c97fe2a6ca
3 changed files with 14 additions and 1 deletions
|
@ -275,6 +275,12 @@ void ScriptManager::saveQueue(Common::Serializer &s) {
|
|||
_queue.saveLoadWithSerializer(s);
|
||||
}
|
||||
|
||||
void ScriptManager::resetAll() {
|
||||
_scripts.clear();
|
||||
resetQueue();
|
||||
reset();
|
||||
}
|
||||
|
||||
void ScriptManager::reset(uint32 count) {
|
||||
// Create a set of empty scripts
|
||||
for (uint32 i = 0; i < count; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue