Ticket #3407: 3407.patch
File 3407.patch, 648 bytes (added by , 9 years ago) |
---|
-
source/simulation2/components/CCmpTerritoryManager.cpp
540 540 if (m_TerritoryTotalPassableCellCount == 0) 541 541 CalculateTerritories(); 542 542 543 // If it is still 0, then we return 0 544 if (m_TerritoryTotalPassableCellCount == 0) 545 return 0; 546 543 547 ENSURE(m_TerritoryTotalPassableCellCount > 0); 544 548 u8 percentage = (m_TerritoryCellCounts[player] * 100) / m_TerritoryTotalPassableCellCount; 545 549 ENSURE(percentage <= 100);