Explorar o código

Fixed CID 1375682

AlexVinS %!s(int64=8) %!d(string=hai) anos
pai
achega
fa6a7bd1b5
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      client/windows/CCreatureWindow.cpp

+ 2 - 1
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
 	if (selectedIcon && oldSelection < 100) // recreate image on old selection, only for skills
 		selectedIcon->setObject(new CPicture(getSkillImage(oldSelection)));
 		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
 	selectedIcon = newIcon; // update new selection
 	if (newSkill < 100)
 	if (newSkill < 100)