mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-14 23:05:57 -04:00
Merge branch 'fix_7439' into 'master'
Fix #7439: world.players and nearby.players returns "0_-1" instead of "1_-1" Closes #7439 See merge request OpenMW/openmw!3183
This commit is contained in:
commit
2a271cdecc
@ -246,8 +246,8 @@ namespace MWLua
|
|||||||
return;
|
return;
|
||||||
if (!mPlayer.isEmpty())
|
if (!mPlayer.isEmpty())
|
||||||
throw std::logic_error("Player is initialized twice");
|
throw std::logic_error("Player is initialized twice");
|
||||||
mWorldView.setPlayer(ptr);
|
|
||||||
mWorldView.objectAddedToScene(ptr);
|
mWorldView.objectAddedToScene(ptr);
|
||||||
|
mWorldView.setPlayer(ptr);
|
||||||
mPlayer = ptr;
|
mPlayer = ptr;
|
||||||
LocalScripts* localScripts = ptr.getRefData().getLuaScripts();
|
LocalScripts* localScripts = ptr.getRefData().getLuaScripts();
|
||||||
if (!localScripts)
|
if (!localScripts)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user