From 9223ed6ba1a306921c9b86e132ca7cd442f62a81 Mon Sep 17 00:00:00 2001 From: stujones11 Date: Thu, 4 Oct 2018 19:16:59 +0100 Subject: [PATCH] Fix incorrect wield texture ID --- src/dialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +}