diff --git a/source/Irrlicht/CGUIImage.cpp b/source/Irrlicht/CGUIImage.cpp index a963b347..b1c25d26 100644 --- a/source/Irrlicht/CGUIImage.cpp +++ b/source/Irrlicht/CGUIImage.cpp @@ -200,7 +200,7 @@ void CGUIImage::deserializeAttributes(io::IAttributes* in, io::SAttributeReadWri setImage(in->getAttributeAsTexture("Texture", Texture)); setUseAlphaChannel(in->getAttributeAsBool("UseAlphaChannel", UseAlphaChannel)); setColor(in->getAttributeAsColor("Color", Color)); - setScaleImage(in->getAttributeAsBool("ScaleImage", UseAlphaChannel)); + setScaleImage(in->getAttributeAsBool("ScaleImage", ScaleImage)); setSourceRect(in->getAttributeAsRect("SourceRect", SourceRect)); DrawBounds.UpperLeftCorner.X = in->getAttributeAsFloat("DrawBoundsX1", DrawBounds.UpperLeftCorner.X);