From e7731242c1315df230bffbf0593e1a608aa791a3 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 10 Mar 2012 21:34:47 +0000 Subject: Using references instead of pointers for sending packets git-svn-id: http://mc-server.googlecode.com/svn/trunk@394 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cEntity.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/cEntity.cpp') diff --git a/source/cEntity.cpp b/source/cEntity.cpp index ba1ca836a..f9e9d4e82 100644 --- a/source/cEntity.cpp +++ b/source/cEntity.cpp @@ -120,7 +120,7 @@ void cEntity::MoveToCorrectChunk(bool a_bIgnoreOldChunk) { m_Destroy = new cPacket_DestroyEntity(m_Entity); } - a_Client->Send(m_Destroy); + a_Client->Send(*m_Destroy); } virtual void Added(cClientHandle * a_Client) override @@ -131,7 +131,7 @@ void cEntity::MoveToCorrectChunk(bool a_bIgnoreOldChunk) } if (m_Spawn != NULL) { - a_Client->Send(m_Spawn); + a_Client->Send(*m_Spawn); } } @@ -218,7 +218,7 @@ void cEntity::SpawnOn(cClientHandle * a_Client) } else { - a_Client->Send(SpawnPacket.get()); + a_Client->Send(*(SpawnPacket.get())); } } -- cgit v1.2.3