From b55e5f5ad142404a5e376bb65f963acf1a4f8ff3 Mon Sep 17 00:00:00 2001 From: Lukas Pioch Date: Thu, 24 Aug 2017 13:26:23 +0200 Subject: Use ref instead of pointer --- src/Mobs/Monster.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Mobs/Monster.h') diff --git a/src/Mobs/Monster.h b/src/Mobs/Monster.h index d98706f8b..1f6bd6011 100644 --- a/src/Mobs/Monster.h +++ b/src/Mobs/Monster.h @@ -84,7 +84,7 @@ public: bool IsLeashed() const { return (m_LeashedTo != nullptr); } /** Leash the monster to an entity. */ - void LeashTo(cEntity * a_Entity, bool a_ShouldBroadcast = true); + void LeashTo(cEntity & a_Entity, bool a_ShouldBroadcast = true); /** Unleash the monster. Overload for the Unleash(bool, bool) function for plugins */ void Unleash(bool a_ShouldDropLeashPickup); -- cgit v1.2.3