summaryrefslogtreecommitdiff
path: root/src/network/network.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-04-13 18:40:47 +0000
committerrubidium <rubidium@openttd.org>2010-04-13 18:40:47 +0000
commitd2ed777fa5a9a1c39923ace958cd7e01f60de7f8 (patch)
tree1d74c84292d671d3f1756848e1682b57ed912f39 /src/network/network.cpp
parentf14f96d2eb644301cf536a96a70158a6a7b0f5ef (diff)
downloadopenttd-d2ed777fa5a9a1c39923ace958cd7e01f60de7f8.tar.xz
(svn r19619) -Fix (r19618): [desync debug] inserting the "join" pause could cause a crash as some command data was not properly initialised
Diffstat (limited to 'src/network/network.cpp')
-rw-r--r--src/network/network.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp
index 669de71dc..533ed593a 100644
--- a/src/network/network.cpp
+++ b/src/network/network.cpp
@@ -1147,7 +1147,7 @@ void NetworkGameLoop()
int ret = sscanf(p + 6, "%x; %x", &next_date, &next_date_fract);
assert(ret == 2);
DEBUG(net, 0, "injecting pause for join at %08x:%02x; please join when paused", next_date, next_date_fract);
- cp = MallocT<CommandPacket>(1);
+ cp = CallocT<CommandPacket>(1);
cp->company = COMPANY_SPECTATOR;
cp->cmd = CMD_PAUSE;
cp->p1 = PM_PAUSED_NORMAL;