1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Fix for Travis

This commit is contained in:
DJWarmonger
2018-07-28 16:02:59 +02:00
parent 5cd366dca3
commit 30f99e7cc1
4 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
#include "mock_ResourceManager.h"
void ResourceManagerMock::reserveResoures(TResources &res, Goals::TSubgoal goal)
void ResourceManagerMock::reserveResoures(const TResources &res, Goals::TSubgoal goal)
{
ResourceManager::reserveResoures(res, goal);
}

View File

@@ -13,7 +13,7 @@ class ResourceManagerMock : public ResourceManager
public:
using ResourceManager::ResourceManager;
//access protected members, TODO: consider other architecture?
void reserveResoures(TResources &res, Goals::TSubgoal goal = Goals::TSubgoal()) override;
void reserveResoures(const TResources &res, Goals::TSubgoal goal = Goals::TSubgoal()) override;
bool updateGoal(Goals::TSubgoal goal) override;
bool notifyGoalCompleted(Goals::TSubgoal goal) override;
};