diff --git a/src/game/editor/editor.cpp b/src/game/editor/editor.cpp index 1e4b8e550..1c4137f8a 100644 --- a/src/game/editor/editor.cpp +++ b/src/game/editor/editor.cpp @@ -3956,7 +3956,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);