mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-17 01:32:21 +02:00
Fixed logs.
This commit is contained in:
@ -375,7 +375,7 @@ CDefEssential * Graphics::getDef( const CGObjectInstance * obj )
|
|||||||
{
|
{
|
||||||
if (obj->appearance.animationFile.empty())
|
if (obj->appearance.animationFile.empty())
|
||||||
{
|
{
|
||||||
logGlobal->warnStream() << boost::format("Def name for (%d,%d) is empty!") % obj->id % obj->subID;
|
logGlobal->warnStream() << boost::format("Def name for obj %d (%d,%d) is empty!") % obj->id % obj->ID % obj->subID;
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
return advmapobjGraphics[obj->appearance.animationFile];
|
return advmapobjGraphics[obj->appearance.animationFile];
|
||||||
|
@ -865,7 +865,7 @@ void CMapHandler::CMapBlitter::drawObjects(SDL_Surface * targetSurf, const Terra
|
|||||||
if (!obj->appearance.animationFile.empty())
|
if (!obj->appearance.animationFile.empty())
|
||||||
logGlobal->errorStream() << "Failed to load image " << obj->appearance.animationFile;
|
logGlobal->errorStream() << "Failed to load image " << obj->appearance.animationFile;
|
||||||
else
|
else
|
||||||
logGlobal->warnStream() << boost::format("Def name for (%d,%d) is empty!") % obj->id % obj->subID;
|
logGlobal->warnStream() << boost::format("Def name for obj %d (%d,%d) is empty!") % obj->id % obj->ID % obj->subID;
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user