aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/KillCommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/KillCommand.cpp')
-rw-r--r--Minecraft.World/KillCommand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Minecraft.World/KillCommand.cpp b/Minecraft.World/KillCommand.cpp
index 3a82378b..f7a3bbf8 100644
--- a/Minecraft.World/KillCommand.cpp
+++ b/Minecraft.World/KillCommand.cpp
@@ -11,7 +11,7 @@ EGameCommand KillCommand::getId()
void KillCommand::execute(std::shared_ptr<CommandSender> source, byteArray commandData)
{
- std::shared_ptr<Player> player = dynamic_pointer_cast<Player>(source);
+ std::shared_ptr<Player> player = std::dynamic_pointer_cast<Player>(source);
player->hurt(DamageSource::outOfWorld, 1000);