mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 03:53:52 +00:00
Fix another case of container scripts not getting re-added
This commit is contained in:
parent
829512ded4
commit
39de0510a0
1 changed files with 6 additions and 2 deletions
|
@ -749,12 +749,16 @@ namespace MWWorld
|
||||||
|
|
||||||
void World::changeToInteriorCell (const std::string& cellName, const ESM::Position& position)
|
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)
|
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()
|
void World::markCellAsUnchanged()
|
||||||
|
|
Loading…
Reference in a new issue