diff --git a/src/game/editor/editor.cpp b/src/game/editor/editor.cpp index e9521c6af..5e7d3bc68 100644 --- a/src/game/editor/editor.cpp +++ b/src/game/editor/editor.cpp @@ -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);