1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-21 00:19:29 +02:00

Mod system improvement Part I : Fix content losing after deserialization

This commit is contained in:
Dmitry Orlov
2020-10-10 00:31:23 +03:00
parent bf07cd0ad9
commit 195fb8ff41
7 changed files with 36 additions and 13 deletions

View File

@ -186,3 +186,13 @@ LibClasses::~LibClasses()
{
clear();
}
std::shared_ptr<CContentHandler> LibClasses::getContent() const
{
return modh->content;
}
void LibClasses::setContent(std::shared_ptr<CContentHandler> content)
{
modh->content = content;
}