mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-25 08:22:17 +00:00
Codechange: Use functor for Kdtree's XYFunc. (#13074)
Kdtree uses a function pointer and incorrectly calls it a functor. The function pointer needs to be passed on instantiaton. Instead, use an actual functor. This simplifies instantiation.
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@ StationPool _station_pool("Station");
|
||||
INSTANTIATE_POOL_METHODS(Station)
|
||||
|
||||
|
||||
StationKdtree _station_kdtree(Kdtree_StationXYFunc);
|
||||
StationKdtree _station_kdtree{};
|
||||
|
||||
void RebuildStationKdtree()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user