summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-02-25 20:06:11 +0000
committeryexo <yexo@openttd.org>2010-02-25 20:06:11 +0000
commit7ff55502f04f9f75b01879ea04518c14d4706046 (patch)
treef48f911cf9861a0053bd35b92bf1e0ece0a5bf58 /src/network
parenta9c8dbc0a0e1f1fc4434cf0c83ff658ab8d9e3d9 (diff)
downloadopenttd-7ff55502f04f9f75b01879ea04518c14d4706046.tar.xz
(svn r19256) -Codechange: use a constructor/destructor for GRFConfig to make sure all members are properly initialized
Diffstat (limited to 'src/network')
-rw-r--r--src/network/core/udp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/core/udp.cpp b/src/network/core/udp.cpp
index 4bf0c1e30..e56c839d0 100644
--- a/src/network/core/udp.cpp
+++ b/src/network/core/udp.cpp
@@ -238,7 +238,7 @@ void NetworkUDPSocketHandler::Recv_NetworkGameInfo(Packet *p, NetworkGameInfo *i
if (num_grfs > NETWORK_MAX_GRF_COUNT) return;
for (i = 0; i < num_grfs; i++) {
- GRFConfig *c = CallocT<GRFConfig>(1);
+ GRFConfig *c = new GRFConfig();
this->Recv_GRFIdentifier(p, &c->ident);
this->HandleIncomingNetworkGameInfoGRFConfig(c);