mirror of https://github.com/OpenTTD/OpenTTD
Codechange: linkgraph always iterates with NodeIDs over the Size(), so make Size() the same type to prevent infinite loops
parent
ed9e38221a
commit
6fe4d4ad7b
|
@ -495,7 +495,7 @@ public:
|
|||
* Get the current size of the component.
|
||||
* @return Size.
|
||||
*/
|
||||
inline uint16 Size() const { return (uint16)this->nodes.size(); }
|
||||
inline NodeID Size() const { return (NodeID)this->nodes.size(); }
|
||||
|
||||
/**
|
||||
* Get date of last compression.
|
||||
|
|
|
@ -332,7 +332,7 @@ public:
|
|||
* Get the size of the underlying link graph.
|
||||
* @return Size.
|
||||
*/
|
||||
inline uint Size() const { return this->link_graph.Size(); }
|
||||
inline NodeID Size() const { return this->link_graph.Size(); }
|
||||
|
||||
/**
|
||||
* Get the cargo of the underlying link graph.
|
||||
|
|
Loading…
Reference in New Issue