diff options
Diffstat (limited to 'src/core/netconnection.cc')
-rw-r--r-- | src/core/netconnection.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/netconnection.cc b/src/core/netconnection.cc index 60b4ff8..63c906a 100644 --- a/src/core/netconnection.cc +++ b/src/core/netconnection.cc @@ -8,6 +8,7 @@ #include "sys/sys.h" #include "net/net.h" +#include "core/application.h" #include "core/netconnection.h" #include "core/player.h" @@ -31,7 +32,7 @@ void NetConnection::connect(std::string const &to_host, int to_port) } std::ostringstream osstream; - osstream << "name " << Player::local.name() << std::endl; + osstream << "name " << game()->localplayer()->name() << std::endl; send(osstream.str()); } |