diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-09-29 22:26:31 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-09-29 22:26:31 +0200 |
commit | 2919e527e3e2c0bbdd35afe28c7da4b041ca25f1 (patch) | |
tree | 58e952b592c576e78a5160dce7e538603d0e4116 /src/Net/Packets/HostListPacket.cpp | |
parent | 011eb079956c8b08db7b7ecff57503c436b39cbf (diff) | |
parent | 13fd1bb4f19e4791e000cb71cca2065820184bdb (diff) | |
download | mad-2919e527e3e2c0bbdd35afe28c7da4b041ca25f1.tar mad-2919e527e3e2c0bbdd35afe28c7da4b041ca25f1.zip |
Merge
Diffstat (limited to 'src/Net/Packets/HostListPacket.cpp')
-rw-r--r-- | src/Net/Packets/HostListPacket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Net/Packets/HostListPacket.cpp b/src/Net/Packets/HostListPacket.cpp index 30a33b3..8c3d395 100644 --- a/src/Net/Packets/HostListPacket.cpp +++ b/src/Net/Packets/HostListPacket.cpp @@ -46,7 +46,7 @@ void HostListPacket::assemblePacket() { *nHosts = htons(hostList.size()); for(size_t i = 0; i < hostList.size(); ++i) { - hostData[i].status = htons((uint16_t)hostList[i].getStatus()); + hostData[i].state = htons((uint16_t)hostList[i].getState()); } } @@ -69,7 +69,7 @@ void HostListPacket::parsePacket() { std::istringstream stream(std::string(charData, getLength() - (sizeof(uint16_t)+sizeof(HostData)*hostList.size()))); for(size_t i = 0; i < hostList.size(); ++i) { - hostList[i].setStatus((Common::HostInfo::Status)ntohs(hostData[i].status)); + hostList[i].setState((Common::HostInfo::State)ntohs(hostData[i].state)); if(!stream.eof()) { std::string str; |