1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 01:23:53 +00:00

Fixed Small bug where scripts were being removed when they shouldn't be.

Scripts should only be removed when the item is being moved to another cell, otherwise they should remain active.
This commit is contained in:
Tom Mason 2013-01-31 00:21:04 +00:00
parent 19dff822f4
commit dc91211b12

View file

@ -694,10 +694,11 @@ namespace MWWorld
bool isPlayer = ptr == mPlayer->getPlayer();
bool haveToMove = mWorldScene->isCellActive(*currCell) || isPlayer;
removeContainerScripts(ptr);
if (*currCell != newCell)
{
removeContainerScripts(ptr);
if (isPlayer)
if (!newCell.isExterior())
changeToInteriorCell(Misc::StringUtils::lowerCase(newCell.mCell->mName), pos);