Use ref instead of pointer

This commit is contained in:
Lukas Pioch
2017-08-24 14:36:29 +02:00
parent 7b3372ad38
commit b55e5f5ad1
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ void cLeashKnot::TiePlayersLeashedMobs(cPlayer & a_Player, bool a_ShouldBroadCas
// All conditions met, unleash from player and leash to fence
PotentialLeashed->Unleash(false, false);
PotentialLeashed->LeashTo(m_Knot, m_ShouldBroadcast);
PotentialLeashed->LeashTo(*m_Knot, m_ShouldBroadcast);
return false;
}
} LookForLeashedsCallback(this, &a_Player, a_ShouldBroadCast);