(svn r8044) Regression (r8038): Crash on allocating bridge memory (peter1138)

This commit is contained in:
Darkvater
2007-01-10 21:44:59 +00:00
parent e60d61e0cd
commit c0a516b8e5
2 changed files with 2 additions and 2 deletions

View File

@@ -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);