diff --git a/src/dialog.cpp b/src/dialog.cpp index b5c4f6b..584fcaf 100644 --- a/src/dialog.cpp +++ b/src/dialog.cpp @@ -402,8 +402,8 @@ bool TexturesDialog::OnEvent(const SEvent &event) if (id == E_BUTTON_ID_MODEL + i) edit_id = E_TEXTURE_ID_MODEL + i; - else if (id == E_BUTTON_ID_MODEL + i) - edit_id = E_TEXTURE_ID_MODEL + 1; + else if (id == E_BUTTON_ID_WIELD + i) + edit_id = E_TEXTURE_ID_WIELD + i; if (edit_id) { @@ -561,4 +561,4 @@ bool LightsDialog::OnEvent(const SEvent &event) } } return IGUIElement::OnEvent(event); -} \ No newline at end of file +}