From bed7b64457c3c99a73088efdf7f31178e70c57dc Mon Sep 17 00:00:00 2001 From: Choupom Date: Sat, 9 Oct 2010 20:04:14 +0200 Subject: fixed map selection in map editor --- src/game/editor/ed_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/editor') diff --git a/src/game/editor/ed_editor.cpp b/src/game/editor/ed_editor.cpp index 0b84fe38..295f72b9 100644 --- a/src/game/editor/ed_editor.cpp +++ b/src/game/editor/ed_editor.cpp @@ -2147,7 +2147,7 @@ static void EditorListdirCallback(const char *pName, int IsDir, int StorageType, void CEditor::AddFileDialogEntry(int Index, CUIRect *pView) { m_FilesCur++; - if(m_FilesCur-1 < m_FilesStartAt || m_FilesCur > m_FilesStopAt) + if(m_FilesCur-1 < m_FilesStartAt || m_FilesCur >= m_FilesStopAt) return; CUIRect Button; -- cgit 1.4.1