Changeset - r17797:a5bcb68664f7
[Not reviewed]
master
0 1 0
frosch - 13 years ago 2011-06-15 18:53:58
frosch@openttd.org
(svn r22592) -Fix [FS#4645]: Reading of heightmaps with uncommon BMP formats failed due to uninitialised variables. (Parody)
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/bmp.cpp
Show inline comments
 
@@ -13,6 +13,7 @@
 
#include "bmp.h"
 
#include "core/bitmath_func.hpp"
 
#include "core/alloc_func.hpp"
 
#include "core/mem_func.hpp"
 

	
 
void BmpInitializeBuffer(BmpBuffer *buffer, FILE *file)
 
{
 
@@ -287,6 +288,7 @@ bool BmpReadHeader(BmpBuffer *buffer, Bm
 
{
 
	uint32 header_size;
 
	assert(info != NULL);
 
	MemSetT(info, 0);
 

	
 
	/* Reading BMP header */
 
	if (ReadWord(buffer) != 0x4D42) return false; // signature should be 'BM'
0 comments (0 inline, 0 general)