Fix incorrect wield texture ID

master
stujones11 2018-10-04 19:16:59 +01:00
parent 2969478764
commit 9223ed6ba1
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}
}