1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00
This commit is contained in:
AlexVinS 2017-05-29 12:39:08 +03:00 committed by DJWarmonger
parent 039e3842fc
commit f073031689
2 changed files with 1 additions and 2 deletions

View File

@ -82,7 +82,6 @@ CFaction::~CFaction()
CTown::CTown()
: faction(nullptr), mageLevel(0), primaryRes(0), moatDamage(0), defaultTavernChance(0)
{
faction = nullptr;
}
CTown::~CTown()

View File

@ -2231,7 +2231,7 @@ void CMapLoaderH3M::afterRead()
for(auto obj : t.visitableObjects)
{
if(obj->ID = Obj::TOWN)
if(obj->ID == Obj::TOWN || obj->ID == Obj::RANDOM_TOWN)
{
mainTown = obj;
break;