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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user