From d6b30dd3a5df4b84a287305f807442064f4cf68d Mon Sep 17 00:00:00 2001 From: Kahrl Date: Tue, 29 Nov 2011 17:15:18 +0200 Subject: CraftItem rework and Lua interface --- src/servercommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/servercommand.cpp') 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(ctx->player); srp->setPos(dest); ctx->server->SendMovePlayer(ctx->player); -- cgit v1.2.3