mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix segfault in editor
This commit is contained in:
parent
c9e0f7e950
commit
554c865eeb
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue