Merge pull request #2965 from Assumeru/startscript-regression

Fix a regression caused by #2648 (fixes #5513)
pull/579/head
Andrei Kortunov 5 years ago committed by GitHub
commit f12123a172
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1185,7 +1185,6 @@ namespace MWWorld
mRendering->updatePtr(ptr, newPtr);
MWBase::Environment::get().getSoundManager()->updatePtr (ptr, newPtr);
mPhysics->updatePtr(ptr, newPtr);
MWBase::Environment::get().getScriptManager()->getGlobalScripts().updatePtrs(ptr, newPtr);
MWBase::MechanicsManager *mechMgr = MWBase::Environment::get().getMechanicsManager();
mechMgr->updateCell(ptr, newPtr);
@ -1203,6 +1202,7 @@ namespace MWWorld
}
MWBase::Environment::get().getWindowManager()->updateConsoleObjectPtr(ptr, newPtr);
MWBase::Environment::get().getScriptManager()->getGlobalScripts().updatePtrs(ptr, newPtr);
}
if (haveToMove && newPtr.getRefData().getBaseNode())
{

Loading…
Cancel
Save