소스 검색

This fixes crash in battle I introduced in 8a697f2
dismissInfo do not present when createButtonPanel used inside the battle.

ArseniyShestakov 10 년 전
부모
커밋
ceb5da44d1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      client/windows/CCreatureWindow.cpp

+ 1 - 1
client/windows/CCreatureWindow.cpp

@@ -528,7 +528,7 @@ void CStackWindow::CWindowSection::createButtonPanel()
 	OBJ_CONSTRUCTION_CAPTURING_ALL;
 	createBackground("button-panel");
 
-	if (parent->info->dismissInfo->callback)
+	if (parent->info->dismissInfo && parent->info->dismissInfo->callback)
 	{
 		auto onDismiss = [=]()
 		{