forked from 0ad/0ad
Hopefully fixing VS2003 (autobuilder) error ("'operator &&' is ambiguous - could be 'built-in C++ operator&&(bool, bool)' or 'built-in C++ operator&&(bool, CEntity *)' while trying to match the argument list '(bool, HEntity)'")
This was SVN commit r4358.
This commit is contained in:
parent
bfae07a0bc
commit
7ce31a1544
@ -1503,7 +1503,7 @@ void CBuildingPlacer::update( float timeStep )
|
||||
// Special case: If the territory has no centre unit, that means the map contains no
|
||||
// Settlements; for testing purposes, let us build anywhere.
|
||||
CTerritory* territory = g_Game->GetWorld()->GetTerritoryManager()->GetTerritory( pos.X, pos.Z );
|
||||
if( m_template->m_territoryRestriction == L"Allied" && territory->centre
|
||||
if( m_template->m_territoryRestriction == L"Allied" && (bool)territory->centre
|
||||
&& territory->owner != g_Game->GetLocalPlayer() )
|
||||
{
|
||||
m_valid = false;
|
||||
|
Loading…
Reference in New Issue
Block a user