fixed bool operator for IconAtlas

This commit is contained in:
cylgom 2017-11-08 07:10:17 +01:00
parent 5dbdd62cae
commit 37231d69b0
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class IconAtlas
} }
public: public:
IconAtlas() = default; IconAtlas() = default;
operator bool() const {return m_tex != nullptr;} operator bool() const {return m_tex;}
void initializeAtlas(const boo::ObjToken<boo::ITextureS>& tex) void initializeAtlas(const boo::ObjToken<boo::ITextureS>& tex)
{ {
m_tex = tex; m_tex = tex;