Fix Image copy ctor bug reported by Richard Sim.

This commit is contained in:
castano 2008-03-05 19:11:41 +00:00
parent 9f4b4bd532
commit 75c09220c8

View File

@ -15,7 +15,7 @@ Image::Image() : m_width(0), m_height(0), m_format(Format_RGB), m_data(NULL)
{
}
Image::Image(const Image & img)
Image::Image(const Image & img) : m_data(NULL)
{
allocate(img.m_width, img.m_height);
m_format = img.m_format;