1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fixed wrong animation paths

This commit is contained in:
AlexVinS 2017-09-04 18:41:22 +03:00
parent b964a53abe
commit 2f7968b803
2 changed files with 5 additions and 0 deletions

View File

@ -1468,6 +1468,9 @@ CAnimation::CAnimation(std::string Name, bool Compressed):
CDefFile * file = getFile();
init(file);
delete file;
if(source.empty())
logAnim->error("Animation %s failed to load", Name);
}
CAnimation::CAnimation():

View File

@ -101,6 +101,8 @@ void ObjectTemplate::afterLoadFixup()
usedTiles[0][0] = VISITABLE;
visitDir = 0xFF;
}
boost::algorithm::replace_all(animationFile, "\\", "/");
boost::algorithm::replace_all(editorAnimationFile, "\\", "/");
}
void ObjectTemplate::readTxt(CLegacyConfigParser & parser)