mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
Prefer to pass CGameState as reference instead of pointer
This commit is contained in:
@ -20,7 +20,7 @@ VCMI_LIB_NAMESPACE_BEGIN
|
||||
|
||||
std::shared_ptr<PathfinderConfig> PathfinderCache::createConfig(const CGHeroInstance * h, CPathsInfo & out)
|
||||
{
|
||||
auto config = std::make_shared<SingleHeroPathfinderConfig>(out, cb, h);
|
||||
auto config = std::make_shared<SingleHeroPathfinderConfig>(out, *cb, h);
|
||||
config->options = options;
|
||||
|
||||
return config;
|
||||
|
Reference in New Issue
Block a user