TSAGE: Proper bugfix for problem saving/restoring game in Scene #5000 and others
This commit is contained in:
parent
9f74a6eda2
commit
1651ac8ca2
3 changed files with 6 additions and 17 deletions
|
@ -177,16 +177,6 @@ Common::Error Saver::restore(int slot) {
|
|||
|
||||
// Loop through each registered object to load in the data
|
||||
for (SynchronisedList<SavedObject *>::iterator i = _objList.begin(); i != _objList.end(); ++i) {
|
||||
// Saved games can contain PlayerMover objects, but these aren't synchronized.
|
||||
// Fixes loading in scene 5000.
|
||||
// TODO/FIXME: Add a more proper handling for these objects
|
||||
if ((*i)->getClassName() == "PlayerMover") {
|
||||
warning("HACK: PlayerMover object found, removing it");
|
||||
// Remove that object from the list
|
||||
i = _objList.erase(i);
|
||||
assert(i == _objList.end());
|
||||
break;
|
||||
}
|
||||
serialiser.validate((*i)->getClassName());
|
||||
(*i)->synchronise(serialiser);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue