1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-24 00:36:29 +02:00

Only delete CQuest in CMap destructor and not with IQuestObject

Quest information must remain accessible even if map object removed. Fix issue 2472
This commit is contained in:
Arseniy Shestakov
2016-09-13 01:30:47 +03:00
parent 2543e068ac
commit 1e60ba6516
2 changed files with 6 additions and 1 deletions

View File

@@ -245,6 +245,9 @@ CMap::~CMap()
for(auto obj : objects)
obj.dellNull();
for(auto quest : quests)
quest.dellNull();
}
void CMap::removeBlockVisTiles(CGObjectInstance * obj, bool total)