TSAGE: Fixed assert after loading a game in scene 5000 and changing scene
This commit is contained in:
parent
801c27bd22
commit
a38377c226
1 changed files with 5 additions and 2 deletions
|
@ -181,8 +181,11 @@ Common::Error Saver::restore(int slot) {
|
|||
// Fixes loading in scene 5000.
|
||||
// TODO/FIXME: Add a more proper handling for these objects
|
||||
if ((*i)->getClassName() == "PlayerMover") {
|
||||
warning("HACK: PlayerMover object found, skipping synchronization");
|
||||
continue;
|
||||
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