From 07ad68bc156b3ab70401723bb074a29588ad3cb7 Mon Sep 17 00:00:00 2001 From: void_17 Date: Mon, 2 Mar 2026 17:10:34 +0700 Subject: dynamic_pointer_cast -> std::dynamic_pointer_cast --- Minecraft.World/Creeper.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Minecraft.World/Creeper.cpp') diff --git a/Minecraft.World/Creeper.cpp b/Minecraft.World/Creeper.cpp index 2403d3a4..f502c1e4 100644 --- a/Minecraft.World/Creeper.cpp +++ b/Minecraft.World/Creeper.cpp @@ -120,13 +120,13 @@ void Creeper::die(DamageSource *source) { Monster::die(source); - if ( dynamic_pointer_cast(source->getEntity()) != NULL ) + if ( std::dynamic_pointer_cast(source->getEntity()) != NULL ) { spawnAtLocation(Item::record_01_Id + random->nextInt(12), 1); } - std::shared_ptr player = dynamic_pointer_cast(source->getEntity()); - if ( (dynamic_pointer_cast(source->getDirectEntity()) != NULL) && (player != NULL) ) + std::shared_ptr player = std::dynamic_pointer_cast(source->getEntity()); + if ( (std::dynamic_pointer_cast(source->getDirectEntity()) != NULL) && (player != NULL) ) { player->awardStat(GenericStats::archer(), GenericStats::param_archer()); } -- cgit v1.2.3