mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-30 20:53:45 +01:00
Reserve vectors before pushing and other code quality changes (#11161)
This commit is contained in:
@@ -1428,7 +1428,7 @@ std::string Pathfinder::dirToName(PathDirections dir)
|
||||
}
|
||||
|
||||
/******************************************************************************/
|
||||
void Pathfinder::printPath(std::vector<v3s16> path)
|
||||
void Pathfinder::printPath(const std::vector<v3s16> &path)
|
||||
{
|
||||
unsigned int current = 0;
|
||||
for (std::vector<v3s16>::iterator i = path.begin();
|
||||
|
||||
Reference in New Issue
Block a user