1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00

CMap: fix objects memory leak on exit

This commit is contained in:
Arseniy Shestakov 2016-08-19 16:56:26 +03:00
parent bf6ad4e783
commit ec22da4412

View File

@ -242,6 +242,9 @@ CMap::~CMap()
delete [] terrain;
delete [] guardingCreaturePositions;
}
for(auto obj : objects)
obj.dellNull();
}
void CMap::removeBlockVisTiles(CGObjectInstance * obj, bool total)