mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
This commit is contained in:
parent
039e3842fc
commit
c66c66c5ae
@ -82,7 +82,6 @@ CFaction::~CFaction()
|
||||
CTown::CTown()
|
||||
: faction(nullptr), mageLevel(0), primaryRes(0), moatDamage(0), defaultTavernChance(0)
|
||||
{
|
||||
faction = nullptr;
|
||||
}
|
||||
|
||||
CTown::~CTown()
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user