summaryrefslogtreecommitdiff
path: root/src/heightmap.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
commitc0a516b8e58fc78423608672a060e57700e7753b (patch)
tree1bb85f4e0bb60940c7ebee4294db311bf28483de /src/heightmap.cpp
parente60d61e0cd704983ad355a70e056824cf16c7a0c (diff)
downloadopenttd-c0a516b8e58fc78423608672a060e57700e7753b.tar.xz
(svn r8044) Regression (r8038): Crash on allocating bridge memory (peter1138)
Diffstat (limited to 'src/heightmap.cpp')
-rw-r--r--src/heightmap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/heightmap.cpp b/src/heightmap.cpp
index 57f4c30b1..85e5d34a3 100644
--- a/src/heightmap.cpp
+++ b/src/heightmap.cpp
@@ -249,7 +249,7 @@ static bool ReadHeightmapBMP(char *filename, uint *x, uint *y, byte **map)
return false;
}
- MallocT(map, info.width * info.height);
+ MallocT(/* NO & */map, info.width * info.height);
if (*map == NULL) {
ShowErrorMessage(STR_PNGMAP_ERR_MISC, STR_BMPMAP_ERROR, 0, 0);
fclose(f);