mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 06:53:53 +00:00
Fix the initial player inventory being added twice when starting a new game
This commit is contained in:
parent
aa835aa097
commit
fe51a00112
1 changed files with 0 additions and 4 deletions
|
@ -236,7 +236,6 @@ namespace MWWorld
|
|||
|
||||
// Rebuild player
|
||||
setupPlayer();
|
||||
const ESM::NPC* playerNpc = mStore.get<ESM::NPC>().find("player");
|
||||
MWWorld::Ptr player = mPlayer->getPlayer();
|
||||
renderPlayer();
|
||||
mRendering->resetCamera();
|
||||
|
@ -247,9 +246,6 @@ namespace MWWorld
|
|||
// make sure to do this so that local scripts from items that were in the players inventory are removed
|
||||
mLocalScripts.clear();
|
||||
|
||||
MWWorld::Class::get(player).getContainerStore(player).fill(playerNpc->mInventory, "", mStore);
|
||||
MWWorld::Class::get(player).getInventoryStore(player).autoEquip(player);
|
||||
|
||||
MWBase::Environment::get().getWindowManager()->updatePlayer();
|
||||
|
||||
ESM::Position pos;
|
||||
|
|
Loading…
Reference in a new issue