1
0
forked from 0ad/0ad

Fixed a crash in renderTerritories when there were no Settlements.

This was SVN commit r4267.
This commit is contained in:
Matei 2006-08-29 03:46:14 +00:00
parent 973161ed1b
commit c4d478a690

View File

@ -238,7 +238,6 @@ void CTerritoryManager::renderTerritories()
// Tweak the boundary to shift all edges "inwards" by 0.3 units towards the territory's centre,
// so that boundaries for adjacent territories don't overlap
std::vector<CVector2D> boundary = (*terr)->boundary;
CVector2D centre((*terr)->centre->m_position.X, (*terr)->centre->m_position.Z);
for ( size_t i=0; i<boundary.size(); i++ )
{
size_t prevI = (i+boundary.size()-1) % boundary.size();