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/cServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/cServer.cpp') diff --git a/source/cServer.cpp b/source/cServer.cpp index 5412e4be5..b36d353cb 100644 --- a/source/cServer.cpp +++ b/source/cServer.cpp @@ -285,7 +285,7 @@ cServer::~cServer() // TODO - Need to modify this or something, so it broadcasts to all worlds? And move this to cWorld? -void cServer::Broadcast( const cPacket * a_Packet, cClientHandle* a_Exclude /* = 0 */ ) +void cServer::Broadcast( const cPacket & a_Packet, cClientHandle* a_Exclude /* = 0 */ ) { cCSLock Lock(m_CSClients); for( ClientList::iterator itr = m_Clients.begin(); itr != m_Clients.end(); ++itr) -- cgit v1.2.3