mirror of
https://github.com/edubart/otclient.git
synced 2025-12-25 09:17:11 +01:00
error proning
This commit is contained in:
@@ -47,7 +47,8 @@ Image::Image(const std::string& texture, Rect textureCoords) :
|
||||
|
||||
void Image::draw(const Rect& screenCoords)
|
||||
{
|
||||
g_graphics.drawTexturedRect(screenCoords, m_texture, m_textureCoords);
|
||||
if(m_texture)
|
||||
g_graphics.drawTexturedRect(screenCoords, m_texture, m_textureCoords);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user