dynamic_pointer_cast -> std::dynamic_pointer_cast
This commit is contained in:
1 parent
7bee4770df
commit
07ad68bc15
207 files changed
+623
-623
No files matched your search
@@ -25,7 +25,7 @@ std::shared_ptr<ItemInstance> CarrotOnAStickItem::use(std::shared_ptr<ItemInstan
|
||||
{
|
||||
if (player->isRiding())
|
||||
{
|
||||
std::shared_ptr<Pig> pig = dynamic_pointer_cast<Pig>(player->riding);
|
||||
std::shared_ptr<Pig> pig = std::dynamic_pointer_cast<Pig>(player->riding);
|
||||
if(pig)
|
||||
{
|
||||
if (pig->getControlGoal()->canBoost() && itemInstance->getMaxDamage() - itemInstance->getAuxValue() >= 7)
|
||||
|
||||
Reference in new issue
Block a user