Browse Source

remove var

Laserlicht 1 year ago
parent
commit
dc81426b5e
1 changed files with 1 additions and 3 deletions
  1. 1 3
      client/adventureMap/CList.cpp

+ 1 - 3
client/adventureMap/CList.cpp

@@ -332,9 +332,7 @@ void CHeroList::CHeroItem::keyPressed(EShortcut key)
 
 	if(key == EShortcut::LIST_HERO_DELETE)
 	{
-		CFunctionList<void()> ony = [=](){ };
-		ony += [=](){ LOCPLINT->cb->dismissHero(hero); };
-		LOCPLINT->showYesNoDialog(CGI->generaltexth->allTexts[22], ony, nullptr);
+		LOCPLINT->showYesNoDialog(CGI->generaltexth->allTexts[22], [=](){ LOCPLINT->cb->dismissHero(hero); }, nullptr);
 		return;
 	}