diff --git a/src/object/torch.cpp b/src/object/torch.cpp index 5495076f97c..07acd062aca 100644 --- a/src/object/torch.cpp +++ b/src/object/torch.cpp @@ -78,7 +78,7 @@ Torch::update(float) HitResponse Torch::collision(GameObject& other, const CollisionHit& ) { - const auto player = dynamic_cast(&other); + const auto* player = dynamic_cast(&other); if (player != nullptr && !m_burning) { m_burning = true;