mirror of
https://github.com/overte-org/overte.git
synced 2025-04-18 00:26:33 +02:00
Initialize members in the right order.
This commit is contained in:
parent
e4ed9162b9
commit
6dae9db01d
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ unsigned short loadBufferWithSocketInfo(char* addressBuffer, sockaddr* socket) {
|
|||
}
|
||||
}
|
||||
|
||||
UDPSocket::UDPSocket(int listeningPort) : blocking(true), listeningPort(listeningPort) {
|
||||
UDPSocket::UDPSocket(int listeningPort) : listeningPort(listeningPort), blocking(true) {
|
||||
init();
|
||||
// create the socket
|
||||
handle = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
|
||||
|
|
Loading…
Reference in a new issue