diff options
-rw-r--r-- | scumm/scummvm.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp index aa51f04f31..44476cc6e4 100644 --- a/scumm/scummvm.cpp +++ b/scumm/scummvm.cpp @@ -2501,6 +2501,18 @@ void ScummEngine::restart() { for (i = 0; i < _numGlobalObjects; i++) clearOwnerOf(i); + // Reallocate and Reinitialize actors + Actor::initActorClass(this); + _actors = new Actor[_numActors]; + for (i = 0; i < _numActors; i++) { + _actors[i].number = i; + _actors[i].initActor(1); + + // this is from IDB + if (_version == 1) + _actors[i].setActorCostume(i); + } + // Reinit things allocateArrays(); // Reallocate arrays readIndexFile(); // Reread index (reset objectstate etc) |