Fixed bug with 'empty()' being called rather than 'clear()'.
This commit is contained in:
		| @@ -322,10 +322,10 @@ namespace PolyVox | |||||||
| 			throw std::invalid_argument("Block side length cannot be greater than volume depth."); | 			throw std::invalid_argument("Block side length cannot be greater than volume depth."); | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
| 		//Empty the previous data | 		//Clear the previous data | ||||||
| 		m_pBlocks.empty(); | 		m_pBlocks.clear(); | ||||||
| 		m_vecBlockIsPotentiallyHomogenous.empty(); | 		m_vecBlockIsPotentiallyHomogenous.clear(); | ||||||
| 		m_pHomogenousBlock.empty(); | 		m_pHomogenousBlock.clear(); | ||||||
|  |  | ||||||
| 		//Compute the volume side lengths | 		//Compute the volume side lengths | ||||||
| 		m_uWidth = uWidth; | 		m_uWidth = uWidth; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user