ASYLUM: Fixed script reset while changing scenes.

This prevents a lot of fault script actions.
This commit is contained in:
xesf 2012-01-08 16:53:30 +00:00 committed by Eugene Sandulenko
parent 59cfa7ce66
commit c97fe2a6ca
No known key found for this signature in database
GPG key ID: 014D387312D34F08
3 changed files with 14 additions and 1 deletions

View file

@ -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++) {