ASYLUM: Fix loading of saved games

- Do not add more actors/objects/actions when loading data (the correct scene was loaded and contains the data already)
 - Do not reset the script queue and empty the script array before loading the script list
This commit is contained in:
Littleboy 2011-08-05 05:19:19 -04:00 committed by Eugene Sandulenko
parent 8032becd15
commit 03cd0ddf56
No known key found for this signature in database
GPG key ID: 014D387312D34F08
4 changed files with 11 additions and 23 deletions

View file

@ -269,12 +269,12 @@ void ScriptManager::saveQueue(Common::Serializer &s) {
_queue.saveLoadWithSerializer(s);
}
void ScriptManager::reset() {
// Reset script queue
resetQueue();
// Remove all scripts
_scripts.clear();
void ScriptManager::reset(uint32 count) {
// Create a set of empty scripts
for (uint32 i = 0; i < count; i++) {
Script script;
_scripts.push_back(script);
}
_done = false;
_exit = false;