1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Fixed CQuest leak

This commit is contained in:
AlexVinS
2016-08-30 09:46:01 +03:00
parent f686e4fe80
commit c6d257f328
2 changed files with 13 additions and 2 deletions

View File

@@ -490,6 +490,17 @@ void CQuest::addReplacements(MetaString &out, const std::string &base) const
}
}
IQuestObject::IQuestObject():
quest(new CQuest())
{
}
IQuestObject::~IQuestObject()
{
delete quest;
}
bool IQuestObject::checkQuest(const CGHeroInstance* h) const
{
return quest->checkQuest(h);