aboutsummaryrefslogtreecommitdiff
path: root/src/servercommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/servercommand.cpp')
-rw-r--r--src/servercommand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/servercommand.cpp b/src/servercommand.cpp
index f415c86ce..afd704fd3 100644
--- a/src/servercommand.cpp
+++ b/src/servercommand.cpp
@@ -225,7 +225,7 @@ void cmd_teleport(std::wostringstream &os,
//ctx->player->setPosition(dest);
// Use the ServerActiveObject interface of ServerRemotePlayer
- ServerRemotePlayer *srp = (ServerRemotePlayer*)ctx->player;
+ ServerRemotePlayer *srp = static_cast<ServerRemotePlayer*>(ctx->player);
srp->setPos(dest);
ctx->server->SendMovePlayer(ctx->player);