From 3b35a00397d7919b0613be8f6f756beabad53edc Mon Sep 17 00:00:00 2001 From: TheHyper45 <86074167+TheHyper45@users.noreply.github.com> Date: Sat, 19 Jun 2021 22:25:24 +0100 Subject: Death messages for tamed pets and ocelots are now tamable. (#5243) * Fixing bugs regarding wolfs and ocelots * Death messages appear after killing tamed ocelots and wolfs * Style fix * Added myself to the CONTRIBUTORS file * Removed redundant string initialization * Removed an unsafe cast. * Changed the order of initialization of fields in constuctor of class cOcelot --- src/Mobs/Wolf.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Mobs/Wolf.cpp') diff --git a/src/Mobs/Wolf.cpp b/src/Mobs/Wolf.cpp index 0a3a12ea7..2b45faa2b 100644 --- a/src/Mobs/Wolf.cpp +++ b/src/Mobs/Wolf.cpp @@ -166,6 +166,7 @@ void cWolf::ReceiveNearbyFightInfo(const cUUID & a_PlayerID, cPawn * a_Opponent, void cWolf::OnRightClicked(cPlayer & a_Player) { + cMonster::OnRightClicked(a_Player); const cItem & EquippedItem = a_Player.GetEquippedItem(); const int EquippedItemType = EquippedItem.m_ItemType; -- cgit v1.2.3