diff options
| author | oy <Tom_Adams@web.de> | 2011-05-09 17:37:04 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-05-09 17:37:04 +0200 |
| commit | cd2114c758bde7cf372cb48ea2e92f7356222cc9 (patch) | |
| tree | b4102c321f8bf32332f7205878127aaf40d8dcbe | |
| parent | baa2e650a5e53303b13a8d0ffe50e30237cb403b (diff) | |
| download | zcatch-cd2114c758bde7cf372cb48ea2e92f7356222cc9.tar.gz zcatch-cd2114c758bde7cf372cb48ea2e92f7356222cc9.zip | |
fixed problem with the file dialog in the editor
| -rw-r--r-- | src/game/editor/editor.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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)); |