diff options
| author | oy <Tom_Adams@web.de> | 2010-06-25 18:56:58 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-06-25 18:56:58 +0200 |
| commit | 82f5a56d89005b94493f63ca1d00031d194966b6 (patch) | |
| tree | 5e7129336c2eb5dde134feac515e776b8ddc2734 /src/game/editor/ed_popups.cpp | |
| parent | 822b002344b2da7fa6bc1565aa4ae8db0e801bae (diff) | |
| download | zcatch-82f5a56d89005b94493f63ca1d00031d194966b6.tar.gz zcatch-82f5a56d89005b94493f63ca1d00031d194966b6.zip | |
fixed crash in the map editor
Diffstat (limited to 'src/game/editor/ed_popups.cpp')
| -rw-r--r-- | src/game/editor/ed_popups.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/editor/ed_popups.cpp b/src/game/editor/ed_popups.cpp index 5e833ba6..08ec51cb 100644 --- a/src/game/editor/ed_popups.cpp +++ b/src/game/editor/ed_popups.cpp @@ -84,6 +84,7 @@ int CEditor::PopupGroup(CEditor *pEditor, CUIRect View) pEditor->DoButton_Editor(&s_DeleteButton, Localize("Delete group"), 0, &Button, 0, Localize("Delete group"))) { pEditor->m_Map.DeleteGroup(pEditor->m_SelectedGroup); + pEditor->m_SelectedGroup = max(0, pEditor->m_SelectedGroup-1); return 1; } |