File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,13 +26,13 @@ namespace
2626 script.mRunning = false ;
2727 if (!ptr.isEmpty ())
2828 {
29- if (ptr.getCellRef ().hasContentFile ())
29+ if (MWBase::Environment::get ().getWorld ()->getPlayerPtr () == ptr)
30+ script.mTargetId = ptr.getCellRef ().getRefId ();
31+ else if (ptr.getCellRef ().getRefNum ().isSet ())
3032 {
3133 script.mTargetId = ptr.getCellRef ().getRefId ();
3234 script.mTargetRef = ptr.getCellRef ().getRefNum ();
3335 }
34- else if (MWBase::Environment::get ().getWorld ()->getPlayerPtr () == ptr)
35- script.mTargetId = ptr.getCellRef ().getRefId ();
3636 }
3737 return script;
3838 }
@@ -60,7 +60,7 @@ namespace
6060
6161 MWWorld::Ptr operator ()(const std::pair<ESM::RefNum, ESM::RefId>& pair) const
6262 {
63- if (pair.first .hasContentFile ())
63+ if (pair.first .isSet ())
6464 return MWBase::Environment::get ().getWorldModel ()->getPtr (pair.first );
6565 else if (pair.second .empty ())
6666 return MWWorld::Ptr ();
You can’t perform that action at this time.
0 commit comments