mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Fix rewards nullptr bug
This commit is contained in:
parent
cd28a0791b
commit
3de6569dab
@ -20,6 +20,7 @@ RewardsWidget::RewardsWidget(const CMap & m, CGPandoraBox & p, QWidget *parent)
|
|||||||
QDialog(parent),
|
QDialog(parent),
|
||||||
map(m),
|
map(m),
|
||||||
pandora(&p),
|
pandora(&p),
|
||||||
|
seerhut(nullptr),
|
||||||
ui(new Ui::RewardsWidget)
|
ui(new Ui::RewardsWidget)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
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) :
|
RewardsWidget::RewardsWidget(const CMap & m, CGSeerHut & p, QWidget *parent) :
|
||||||
QDialog(parent),
|
QDialog(parent),
|
||||||
map(m),
|
map(m),
|
||||||
|
pandora(nullptr),
|
||||||
seerhut(&p),
|
seerhut(&p),
|
||||||
ui(new Ui::RewardsWidget)
|
ui(new Ui::RewardsWidget)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user