1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-12 12:38:02 +00:00

Fix another case of container scripts not getting re-added

This commit is contained in:
scrawl 2013-11-22 02:12:37 +01:00
parent 829512ded4
commit 39de0510a0

View File

@ -749,12 +749,16 @@ namespace MWWorld
void World::changeToInteriorCell (const std::string& cellName, const ESM::Position& position)
{
return mWorldScene->changeToInteriorCell(cellName, position);
removeContainerScripts(getPlayer().getPlayer());
mWorldScene->changeToInteriorCell(cellName, position);
addContainerScripts(getPlayer().getPlayer(), getPlayer().getPlayer().getCell());
}
void World::changeToExteriorCell (const ESM::Position& position)
{
return mWorldScene->changeToExteriorCell(position);
removeContainerScripts(getPlayer().getPlayer());
mWorldScene->changeToExteriorCell(position);
addContainerScripts(getPlayer().getPlayer(), getPlayer().getPlayer().getCell());
}
void World::markCellAsUnchanged()