summaryrefslogtreecommitdiff
path: root/src/scriptapi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/scriptapi.cpp')
-rw-r--r--src/scriptapi.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/scriptapi.cpp b/src/scriptapi.cpp
index ce31584a3..a87e7eabf 100644
--- a/src/scriptapi.cpp
+++ b/src/scriptapi.cpp
@@ -1588,7 +1588,9 @@ private:
return NULL;
if(obj->getType() != ACTIVEOBJECT_TYPE_PLAYER)
return NULL;
- return static_cast<ServerRemotePlayer*>(obj);
+ PlayerSAO *player_sao = static_cast<PlayerSAO*>(obj);
+ return player_sao->getPlayer();
+ //return static_cast<ServerRemotePlayer*>(obj);
}
// Exported functions