summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2007-01-10 21:44:59 +0000
committerDarkvater <darkvater@openttd.org>2007-01-10 21:44:59 +0000
commit0cb2bc2b23840d08a4985177b650ab58c929ec1f (patch)
tree1bb85f4e0bb60940c7ebee4294db311bf28483de /src/newgrf.cpp
parentc5a7eaca6585befc5b30e8974dcf8d2a281820e5 (diff)
downloadopenttd-0cb2bc2b23840d08a4985177b650ab58c929ec1f.tar.xz
(svn r8044) Regression (r8038): Crash on allocating bridge memory (peter1138)
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 13fb45cdc..988698762 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -1076,7 +1076,7 @@ static bool BridgeChangeInfo(uint brid, int numinfo, int prop, byte **bufp, int
if (bridge->sprite_table == NULL) {
/* Allocate memory for sprite table pointers and zero out */
- CallocT(bridge->sprite_table, 7);
+ CallocT(&bridge->sprite_table, 7);
}
for (; numtables-- != 0; tableid++) {