diff options
Diffstat (limited to 'src/connectionhandler.cpp')
-rw-r--r-- | src/connectionhandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/connectionhandler.cpp b/src/connectionhandler.cpp index 9ff50619..52186187 100644 --- a/src/connectionhandler.cpp +++ b/src/connectionhandler.cpp @@ -248,12 +248,12 @@ void ConnectionHandler::registerHandler( handlers[msgId] = handler; } -void ConnectionHandler::sendTo(tmwserv::Being *being, MessageOut &msg) +void ConnectionHandler::sendTo(tmwserv::BeingPtr beingPtr, MessageOut &msg) { for (NetComputers::iterator i = clients.begin(); i != clients.end(); i++) { - if ((*i)->getCharacter() == being) { + if ((*i)->getCharacter().get() == beingPtr.get()) { (*i)->send(msg.getPacket()); break; } |