1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-02 23:07:36 +02:00

Merge pull request #3272 from vcmi/fix_rmg_monoliths

Fix rmg monoliths
This commit is contained in:
Ivan Savenko 2023-12-10 22:44:05 +02:00 committed by GitHub
commit 8bf05a8f77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -452,10 +452,12 @@ void CObjectClassesHandler::generateExtraMonolithsForRMG(ObjectClass * container
newPortal->type = portal->getIndex();
newPortal->subtype = portalVec.size(); //indexes must be unique, they are returned as a set
newPortal->blockVisit = portal->blockVisit;
newPortal->removable = portal->removable;
portalVec.push_back(newPortal);
registerObject(ModScope::scopeGame(), container->getJsonKey(), newPortal->subTypeName, newPortal->subtype);
registerObject(newPortal->modScope, container->getJsonKey(), newPortal->subTypeName, newPortal->subtype);
}
}