1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

Fix rewards nullptr bug

This commit is contained in:
nordsoft 2022-10-16 03:42:21 +04:00
parent cd28a0791b
commit 3de6569dab

View File

@ -20,6 +20,7 @@ RewardsWidget::RewardsWidget(const CMap & m, CGPandoraBox & p, QWidget *parent)
QDialog(parent),
map(m),
pandora(&p),
seerhut(nullptr),
ui(new Ui::RewardsWidget)
{
ui->setupUi(this);
@ -31,6 +32,7 @@ RewardsWidget::RewardsWidget(const CMap & m, CGPandoraBox & p, QWidget *parent)
RewardsWidget::RewardsWidget(const CMap & m, CGSeerHut & p, QWidget *parent) :
QDialog(parent),
map(m),
pandora(nullptr),
seerhut(&p),
ui(new Ui::RewardsWidget)
{