From 7ae0c13854d94ac2153cd3bb05ce18044b7cf8bb Mon Sep 17 00:00:00 2001 From: void_17 Date: Mon, 2 Mar 2026 17:36:56 +0700 Subject: Revert "dynamic_pointer_cast -> std::dynamic_pointer_cast" This reverts commit 07ad68bc156b3ab70401723bb074a29588ad3cb7. --- Minecraft.Client/MushroomCowRenderer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Minecraft.Client/MushroomCowRenderer.cpp') diff --git a/Minecraft.Client/MushroomCowRenderer.cpp b/Minecraft.Client/MushroomCowRenderer.cpp index 01f4dbe1..b34ffaf1 100644 --- a/Minecraft.Client/MushroomCowRenderer.cpp +++ b/Minecraft.Client/MushroomCowRenderer.cpp @@ -13,7 +13,7 @@ void MushroomCowRenderer::render(std::shared_ptr _mob, double x, double { // 4J - original version used generics and thus had an input parameter of type MushroomCow rather than std::shared_ptr we have here - // do some casting around instead - //std::shared_ptr mob = std::dynamic_pointer_cast(_mob); + //std::shared_ptr mob = dynamic_pointer_cast(_mob); // 4J Stu - No need to do the cast, just pass through as-is MobRenderer::render(_mob, x, y, z, rot, a); @@ -23,7 +23,7 @@ void MushroomCowRenderer::additionalRendering(std::shared_ptr _mob, float a { // 4J - original version used generics and thus had an input parameter of type MushroomCow rather than std::shared_ptr we have here - // do some casting around instead - std::shared_ptr mob = std::dynamic_pointer_cast(_mob); + std::shared_ptr mob = dynamic_pointer_cast(_mob); MobRenderer::additionalRendering(mob, a); if (mob->isBaby()) return; bindTexture(TN_TERRAIN); // 4J was "/terrain.png" -- cgit v1.2.3