mirror of
https://github.com/vcmi/vcmi.git
synced 2025-05-31 22:59:54 +02:00
Fixed crash due to incorrect monolith id scopes
This commit is contained in:
parent
ef61456681
commit
0f23dde85d
@ -452,10 +452,14 @@ void CObjectClassesHandler::generateExtraMonolithsForRMG(ObjectClass * container
|
|||||||
newPortal->type = portal->getIndex();
|
newPortal->type = portal->getIndex();
|
||||||
|
|
||||||
newPortal->subtype = portalVec.size(); //indexes must be unique, they are returned as a set
|
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);
|
portalVec.push_back(newPortal);
|
||||||
|
|
||||||
registerObject(ModScope::scopeGame(), container->getJsonKey(), newPortal->subTypeName, newPortal->subtype);
|
|
||||||
|
registerObject(newPortal->modScope, container->getJsonKey(), newPortal->subTypeName, newPortal->subtype);
|
||||||
|
//registerObject(ModScope::scopeBuiltin(), container->getJsonKey(), newPortal->subTypeName, newPortal->subtype);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user