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:
parent
8032becd15
commit
03cd0ddf56
4 changed files with 11 additions and 23 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue