From fa6a7bd1b5ac8bc8a2e64685bf21e0db1b3d0a52 Mon Sep 17 00:00:00 2001 From: AlexVinS Date: Sun, 28 May 2017 15:06:12 +0300 Subject: [PATCH] Fixed CID 1375682 --- client/windows/CCreatureWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/windows/CCreatureWindow.cpp b/client/windows/CCreatureWindow.cpp index 4c64a2f82..4051c8ab1 100644 --- a/client/windows/CCreatureWindow.cpp +++ b/client/windows/CCreatureWindow.cpp @@ -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)