aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/ItemSpriteRenderer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.Client/ItemSpriteRenderer.cpp')
-rw-r--r--Minecraft.Client/ItemSpriteRenderer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Minecraft.Client/ItemSpriteRenderer.cpp b/Minecraft.Client/ItemSpriteRenderer.cpp
index 1cc60b62..86bc4b09 100644
--- a/Minecraft.Client/ItemSpriteRenderer.cpp
+++ b/Minecraft.Client/ItemSpriteRenderer.cpp
@@ -37,7 +37,7 @@ void ItemSpriteRenderer::render(std::shared_ptr<Entity> e, double x, double y, d
if (icon == PotionItem::getTexture(PotionItem::THROWABLE_ICON) )
{
- int col = PotionBrewing::getColorValue((dynamic_pointer_cast<ThrownPotion>(e) )->getPotionValue(), false);
+ int col = PotionBrewing::getColorValue((std::dynamic_pointer_cast<ThrownPotion>(e) )->getPotionValue(), false);
float red = ((col >> 16) & 0xff) / 255.0f;
float g = ((col >> 8) & 0xff) / 255.0f;
float b = ((col) & 0xff) / 255.0f;