From fe51a00112b5999aaa7715ce7c69f664c519c9e9 Mon Sep 17 00:00:00 2001 From: scrawl Date: Wed, 31 Jul 2013 21:00:58 +0200 Subject: [PATCH] Fix the initial player inventory being added twice when starting a new game --- apps/openmw/mwworld/worldimp.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/apps/openmw/mwworld/worldimp.cpp b/apps/openmw/mwworld/worldimp.cpp index d35847f3b0..f396157a40 100644 --- a/apps/openmw/mwworld/worldimp.cpp +++ b/apps/openmw/mwworld/worldimp.cpp @@ -236,7 +236,6 @@ namespace MWWorld // Rebuild player setupPlayer(); - const ESM::NPC* playerNpc = mStore.get().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;