mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Prefer to pass CGameState as reference instead of pointer
This commit is contained in:
@@ -219,9 +219,9 @@ struct DLL_LINKAGE PathNodeInfo
|
||||
|
||||
PathNodeInfo();
|
||||
|
||||
virtual void setNode(CGameState * gs, CGPathNode * n);
|
||||
virtual void setNode(CGameState & gs, CGPathNode * n);
|
||||
|
||||
void updateInfo(CPathfinderHelper * hlp, CGameState * gs);
|
||||
void updateInfo(CPathfinderHelper * hlp, CGameState & gs);
|
||||
|
||||
bool isNodeObjectVisitable() const;
|
||||
};
|
||||
@@ -237,7 +237,7 @@ struct DLL_LINKAGE CDestinationNodeInfo : public PathNodeInfo
|
||||
|
||||
CDestinationNodeInfo();
|
||||
|
||||
void setNode(CGameState * gs, CGPathNode * n) override;
|
||||
void setNode(CGameState & gs, CGPathNode * n) override;
|
||||
|
||||
virtual bool isBetterWay() const;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user