mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Fixed CID 1375682
This commit is contained in:
parent
25d06c8d70
commit
fa6a7bd1b5
@ -563,7 +563,8 @@ void CStackWindow::setSelection(si32 newSkill, CCommanderSkillIcon * newIcon)
|
||||
if (selectedIcon && oldSelection < 100) // recreate image on old selection, only for skills
|
||||
selectedIcon->setObject(new CPicture(getSkillImage(oldSelection)));
|
||||
|
||||
selectedIcon->text = getSkillDescription(oldSelection, false); //update previously selected icon's message to existing skill level
|
||||
if(selectedIcon)
|
||||
selectedIcon->text = getSkillDescription(oldSelection, false); //update previously selected icon's message to existing skill level
|
||||
|
||||
selectedIcon = newIcon; // update new selection
|
||||
if (newSkill < 100)
|
||||
|
Loading…
Reference in New Issue
Block a user