summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Pig.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Mobs/Pig.cpp')
-rw-r--r--src/Mobs/Pig.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Mobs/Pig.cpp b/src/Mobs/Pig.cpp
index 1ce6c01fb..88f3795c1 100644
--- a/src/Mobs/Pig.cpp
+++ b/src/Mobs/Pig.cpp
@@ -67,8 +67,8 @@ void cPig::OnRightClicked(cPlayer & a_Player)
m_Attachee->Detach();
}
- // Attach the player to this pig
- a_Player.AttachTo(this);
+ // Attach the player to this pig:
+ a_Player.AttachTo(*this);
}
else if (a_Player.GetEquippedItem().m_ItemType == E_ITEM_SADDLE)
{