Changeset - r5593:14e2ddedbdbe
[Not reviewed]
master
0 2 0
Darkvater - 17 years ago 2007-01-10 21:44:59
darkvater@openttd.org
(svn r8044) Regression (r8038): Crash on allocating bridge memory (peter1138)
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/heightmap.cpp
Show inline comments
 
@@ -249,7 +249,7 @@ static bool ReadHeightmapBMP(char *filen
 
			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);
src/newgrf.cpp
Show inline comments
 
@@ -1076,7 +1076,7 @@ static bool BridgeChangeInfo(uint brid, 
 

	
 
				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++) {
0 comments (0 inline, 0 general)