mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 17:09:42 +00:00
Fix #7439: world.players and nearby.players returns "0_-1" instead of "1_-1"
This commit is contained in:
parent
462d1c5278
commit
8ca7770d56
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue