mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
- Integrated the logging API into the client and the lib - Remove some more comments and switched to /// style - Fixed recursive locks - Added Global.h to CMakeLists(now visible in qt-creator) - Removed usage of shared_mutex - Added unique_ptr to CLogger targets
This commit is contained in:
@ -485,7 +485,7 @@ std::map<int, std::pair<SDL_Color, SDL_Color> > CMinimap::loadColors(std::string
|
||||
auto index = boost::find(GameConstants::TERRAIN_NAMES, m.first);
|
||||
if (index == boost::end(GameConstants::TERRAIN_NAMES))
|
||||
{
|
||||
tlog1 << "Error: unknown terrain in terrains.json: " << m.first << "\n";
|
||||
logGlobal->errorStream() << "Error: unknown terrain in terrains.json: " << m.first;
|
||||
continue;
|
||||
}
|
||||
int terrainID = index - boost::begin(GameConstants::TERRAIN_NAMES);
|
||||
|
Reference in New Issue
Block a user