mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 06:39:42 +00:00
Prevent re-adding local scripts
This commit is contained in:
parent
f6626e36cf
commit
7594d94024
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ namespace MWLua
|
|||
else
|
||||
{
|
||||
newPtr = world->moveObject(ptr, destCell, pos);
|
||||
if (MWBase::Environment::get().getWorldScene()->isCellActive(*srcCell))
|
||||
if (srcCell == destCell)
|
||||
{
|
||||
ESM::RefId script = cls.getScript(newPtr);
|
||||
if (!script.empty())
|
||||
|
|
Loading…
Reference in a new issue