diff options
Diffstat (limited to 'src/netcomputer.cpp')
-rw-r--r-- | src/netcomputer.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/netcomputer.cpp b/src/netcomputer.cpp index d56b4db7..a9245910 100644 --- a/src/netcomputer.cpp +++ b/src/netcomputer.cpp @@ -27,7 +27,8 @@ NetComputer::NetComputer(ConnectionHandler *handler, TCPsocket sock): handler(handler), - socket(sock) + socket(sock), + account(NULL) { } @@ -45,3 +46,8 @@ void NetComputer::send(const Packet *p) { SDLNet_TCP_Send(socket, p->data, p->length); } + +void NetComputer::setAccount(tmwserv::Account *acc) +{ + account = acc; +} |