From cd2114c758bde7cf372cb48ea2e92f7356222cc9 Mon Sep 17 00:00:00 2001 From: oy Date: Mon, 9 May 2011 17:37:04 +0200 Subject: fixed problem with the file dialog in the editor --- src/game/editor/editor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/game/editor') diff --git a/src/game/editor/editor.cpp b/src/game/editor/editor.cpp index 3ea04206..8a0cad53 100644 --- a/src/game/editor/editor.cpp +++ b/src/game/editor/editor.cpp @@ -2197,8 +2197,7 @@ void CEditor::AddFileDialogEntry(int Index, CUIRect *pView) Graphics()->QuadsDrawTL(&QuadItem, 1); Graphics()->QuadsEnd(); - static int s_FileButton = 0; - if(DoButton_File(&s_FileButton, m_FileList[Index].m_aName, m_FilesSelectedIndex == Index, &Button, 0, 0)) + if(DoButton_File(&m_FileList[Index], m_FileList[Index].m_aName, m_FilesSelectedIndex == Index, &Button, 0, 0)) { if(!m_FileList[Index].m_IsDir) str_copy(m_aFileDialogFileName, m_FileList[Index].m_aFilename, sizeof(m_aFileDialogFileName)); -- cgit 1.4.1