diff options
author | rubidium <rubidium@openttd.org> | 2009-04-04 08:48:12 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-04-04 08:48:12 +0000 |
commit | 616cac0c547b361b033ab64021dcd4c3d722f200 (patch) | |
tree | 3f0aeba03a7490f293fab8fb5d6bf3ba294ba395 /src | |
parent | 5eed35ef542938a7ec493573ed955390e44c14e9 (diff) | |
download | openttd-616cac0c547b361b033ab64021dcd4c3d722f200.tar.xz |
(svn r15951) -Fix (r15946) [FS#2803]: ofcourse a couple of OSes/compilers do not provide a nice 'interface', so we have to do it the ugly way.
Diffstat (limited to 'src')
-rw-r--r-- | src/network/core/address.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/core/address.cpp b/src/network/core/address.cpp index 56c49a83f..e61024111 100644 --- a/src/network/core/address.cpp +++ b/src/network/core/address.cpp @@ -125,8 +125,8 @@ bool NetworkAddress::IsInNetmask(char *netmask) break; case AF_INET6: - ip = (uint32*)((struct sockaddr_in6*)&this->address)->sin6_addr.s6_addr32; - mask = (uint32*)((struct sockaddr_in6*)&mask_address.address)->sin6_addr.s6_addr32; + ip = (uint32*)&((struct sockaddr_in6*)&this->address)->sin6_addr; + mask = (uint32*)&((struct sockaddr_in6*)&mask_address.address)->sin6_addr; break; default: |