mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix out of bounds in editor render image
This commit is contained in:
parent
dbc05f6bb0
commit
4338b4fda6
|
@ -3954,7 +3954,7 @@ void CEditor::RenderImages(CUIRect ToolBox, CUIRect View)
|
|||
|
||||
// render image
|
||||
int i = m_SelectedImage;
|
||||
if(i < m_Map.m_lImages.size())
|
||||
if(i != -1 && i < m_Map.m_lImages.size())
|
||||
{
|
||||
CUIRect r;
|
||||
View.Margin(10.0f, &r);
|
||||
|
|
Loading…
Reference in a new issue