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:
parent
79cdabe3aa
commit
8a697f2ba3
@ -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 = [=]()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user