1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Fix disabling of dismiss button for last troop

Fix issue 1994
This commit is contained in:
ArseniyShestakov 2014-12-23 07:12:42 +03:00
parent 79cdabe3aa
commit 8a697f2ba3

View File

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