1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

This fixes crash in battle I introduced in 8a697f2

dismissInfo do not present when createButtonPanel used inside the battle.
This commit is contained in:
ArseniyShestakov
2014-12-27 06:29:09 +03:00
parent 9962623220
commit ceb5da44d1

View File

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