Fix segfault in editor

This commit is contained in:
def 2015-04-17 20:14:14 +02:00
parent c9e0f7e950
commit 554c865eeb

View file

@ -3350,8 +3350,9 @@ void CEditor::RenderImages(CUIRect ToolBox, CUIRect ToolBar, CUIRect View)
}
// render image
int i = m_SelectedImage;
if(i < m_Map.m_lImages.size())
{
int i = m_SelectedImage;
CUIRect r;
View.Margin(10.0f, &r);
if(r.h < r.w)