Skip to content

Commit f32807f

Browse files
committed
Use PlayerIdx type in TradePathCache.cpp
1 parent 2f19424 commit f32807f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

libs/s25main/TradePathCache.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2005 - 2021 Settlers Freaks (sf-team at siedler25.org)
1+
// Copyright (C) 2005 - 2026 Settlers Freaks (sf-team at siedler25.org)
22
//
33
// SPDX-License-Identifier: GPL-2.0-or-later
44

@@ -8,7 +8,7 @@
88
#include "world/GameWorld.h"
99
#include "gameData/GameConsts.h"
1010

11-
bool TradePathCache::pathExists(const MapPoint start, const MapPoint goal, const unsigned char player)
11+
bool TradePathCache::pathExists(const MapPoint start, const MapPoint goal, const PlayerIdx player)
1212
{
1313
RTTR_Assert(start != goal);
1414

@@ -57,7 +57,7 @@ int TradePathCache::findEntry(const MapPoint start, const MapPoint goal, const P
5757
return -1;
5858
}
5959

60-
void TradePathCache::addEntry(TradePath path, const unsigned char player)
60+
void TradePathCache::addEntry(TradePath path, const PlayerIdx player)
6161
{
6262
Entry entry{player, world.GetEvMgr().GetCurrentGF(), std::move(path)};
6363

0 commit comments

Comments
 (0)