mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-11-04 00:26:45 +00:00 
			
		
		
		
	Don't use local type as a template parameter.
This commit is contained in:
		
							parent
							
								
									3a31468af0
								
							
						
					
					
						commit
						674a124bc6
					
				
					 1 changed files with 9 additions and 6 deletions
				
			
		| 
						 | 
					@ -8,6 +8,15 @@
 | 
				
			||||||
#include "../world/subcellcollection.hpp"
 | 
					#include "../world/subcellcollection.hpp"
 | 
				
			||||||
#include "../world/pathgrid.hpp"
 | 
					#include "../world/pathgrid.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    struct Point
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        unsigned char mConnectionNum;
 | 
				
			||||||
 | 
					        std::vector<int> mOtherIndex;
 | 
				
			||||||
 | 
					        Point() : mConnectionNum(0), mOtherIndex(0) {}
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
CSMTools::PathgridCheckStage::PathgridCheckStage (const CSMWorld::SubCellCollection<CSMWorld::Pathgrid>& pathgrids)
 | 
					CSMTools::PathgridCheckStage::PathgridCheckStage (const CSMWorld::SubCellCollection<CSMWorld::Pathgrid>& pathgrids)
 | 
				
			||||||
: mPathgrids (pathgrids)
 | 
					: mPathgrids (pathgrids)
 | 
				
			||||||
| 
						 | 
					@ -35,12 +44,6 @@ void CSMTools::PathgridCheckStage::perform (int stage, CSMDoc::Messages& message
 | 
				
			||||||
    else if (pathgrid.mData.mS2 > static_cast<int>(pathgrid.mPoints.size()))
 | 
					    else if (pathgrid.mData.mS2 > static_cast<int>(pathgrid.mPoints.size()))
 | 
				
			||||||
        messages.push_back (std::make_pair (id, pathgrid.mId + " has more points than expected"));
 | 
					        messages.push_back (std::make_pair (id, pathgrid.mId + " has more points than expected"));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    struct Point
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        unsigned char mConnectionNum;
 | 
					 | 
				
			||||||
        std::vector<int> mOtherIndex;
 | 
					 | 
				
			||||||
        Point() : mConnectionNum(0), mOtherIndex(0) {}
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
    std::vector<Point> pointList(pathgrid.mPoints.size());
 | 
					    std::vector<Point> pointList(pathgrid.mPoints.size());
 | 
				
			||||||
    std::vector<int> duplList;
 | 
					    std::vector<int> duplList;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue