CRAB: Pass arguments by ref in PathfindingGrid::setupNodes()

This commit is contained in:
hax0kartik 2023-08-11 11:15:57 +05:30 committed by Eugene Sandulenko
parent 2dc04959f9
commit aa073516e9
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ void PathfindingGrid::reset() {
_cellSize.y = 0.0;
}
void PathfindingGrid::setupNodes(TMX::TMXMap map) {
void PathfindingGrid::setupNodes(const TMX::TMXMap &map) {
// delete nodes if they exist
reset();

View File

@ -68,7 +68,7 @@ public:
void reset();
void setupNodes(TMX::TMXMap map);
void setupNodes(const TMX::TMXMap &map);
// Return the node at the given point (SZ)
PathfindingGraphNode *getNodeAtPoint(Vector2f point);