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

Fixed GetObj (TRADING_POST) incorrectly set to elementar.

This commit is contained in:
DJWarmonger 2018-07-28 06:47:37 +02:00
parent a8696a9957
commit e7cb8d7d17

View File

@ -1082,7 +1082,7 @@ TSubgoal Goals::CollectRes::whatToDoToTrade()
if (m->o->ID == Obj::TOWN) //just trade remotely using town objid if (m->o->ID == Obj::TOWN) //just trade remotely using town objid
return sptr(setobjid(objid).setisElementar(true)); return sptr(setobjid(objid).setisElementar(true));
else //just go there else //just go there
return sptr(Goals::GetObj(objid).setisElementar(true)); return sptr(Goals::GetObj(objid));
} }
} }
} }