1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-20 07:53:51 +00:00

Fix for player collision cleanup issue

This commit is contained in:
scrawl 2015-05-28 02:45:38 +02:00
parent 6555ee8d80
commit 8b3054aa8b

View file

@ -2107,6 +2107,7 @@ namespace MWWorld
{
// Remove the old CharacterController
MWBase::Environment::get().getMechanicsManager()->remove(getPlayerPtr());
mPhysics->remove(getPlayerPtr());
mPlayer->set(player);
}
@ -2128,6 +2129,7 @@ namespace MWWorld
std::string model = getPlayerPtr().getClass().getModel(getPlayerPtr());
model = Misc::ResourceHelpers::correctActorModelPath(model, mResourceSystem->getVFS());
mPhysics->remove(getPlayerPtr());
mPhysics->addActor(getPlayerPtr(), model);
}