mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-03 08:40:59 +00:00
CRAB: Pass arguments by ref in PathfindingGrid::setupNodes()
This commit is contained in:
parent
2dc04959f9
commit
aa073516e9
@ -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();
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user