summaryrefslogtreecommitdiffstats
path: root/ue2/imgsynth2/cwindowsbitmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ue2/imgsynth2/cwindowsbitmap.cpp')
-rw-r--r--ue2/imgsynth2/cwindowsbitmap.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ue2/imgsynth2/cwindowsbitmap.cpp b/ue2/imgsynth2/cwindowsbitmap.cpp
index ebbdd4c..ddacab9 100644
--- a/ue2/imgsynth2/cwindowsbitmap.cpp
+++ b/ue2/imgsynth2/cwindowsbitmap.cpp
@@ -58,6 +58,7 @@ void CWindowsBitmap::read(std::ifstream& in)
58 if (m_pixeldata != NULL) 58 if (m_pixeldata != NULL)
59 delete[] m_pixeldata; 59 delete[] m_pixeldata;
60 m_pixeldata = new uint8_t[m_infoheader.biSizeImage]; 60 m_pixeldata = new uint8_t[m_infoheader.biSizeImage];
61 in.seekg(m_fileheader.bfOffBits);
61 in.read(reinterpret_cast<char *>(m_pixeldata), m_infoheader.biSizeImage); 62 in.read(reinterpret_cast<char *>(m_pixeldata), m_infoheader.biSizeImage);
62 } 63 }
63 64