mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
Fix potential access to empty std function on hero vs hero combat
This commit is contained in:
parent
119d51d1ef
commit
20e10cd5ab
@ -636,7 +636,9 @@ void BattleResultWindow::show(Canvas & to)
|
|||||||
|
|
||||||
void BattleResultWindow::buttonPressed(int button)
|
void BattleResultWindow::buttonPressed(int button)
|
||||||
{
|
{
|
||||||
resultCallback(button);
|
if (resultCallback)
|
||||||
|
resultCallback(button);
|
||||||
|
|
||||||
CPlayerInterface &intTmp = owner; //copy reference because "this" will be destructed soon
|
CPlayerInterface &intTmp = owner; //copy reference because "this" will be destructed soon
|
||||||
|
|
||||||
close();
|
close();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user