From 7b155f111daf5d7ae477b16d0f0789b1113bea74 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 6 Jun 2012 00:04:33 +0300 Subject: Fix some issues after auto checking. --- src/guichan/widgets/icon.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/guichan/widgets/icon.cpp') diff --git a/src/guichan/widgets/icon.cpp b/src/guichan/widgets/icon.cpp index d3d4d65ff..26139716d 100644 --- a/src/guichan/widgets/icon.cpp +++ b/src/guichan/widgets/icon.cpp @@ -64,11 +64,9 @@ namespace gcn } Icon::Icon(const std::string& filename) : - mImage(nullptr), - mInternalImage(false) + mImage(Image::load(filename)), + mInternalImage(true) { - mImage = Image::load(filename); - mInternalImage = true; setSize(mImage->getWidth(), mImage->getHeight()); } -- cgit v1.2.3-70-g09d2