summaryrefslogtreecommitdiffstats
path: root/src/Net/Packets/HostListPacket.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Net/Packets/HostListPacket.h')
-rw-r--r--src/Net/Packets/HostListPacket.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Net/Packets/HostListPacket.h b/src/Net/Packets/HostListPacket.h
index aba6461..4d0b2d0 100644
--- a/src/Net/Packets/HostListPacket.h
+++ b/src/Net/Packets/HostListPacket.h
@@ -61,6 +61,13 @@ class HostListPacket : public Packet {
return *this;
}
+ HostListPacket& operator=(const HostListPacket &p) {
+ Packet::operator=(p);
+ parsePacket();
+
+ return *this;
+ }
+
const std::vector<Common::HostInfo>& getHostInfo() const {
return hostList;
}