mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Refactor RegistryKeyList
This is in preparation for page patching. The old code kept dynamic (programatically created) and serialized keys separate. This had the potential to reorder the key list during the application of a patch. This is separate from the prp-patches branch to facillitate review.
This commit is contained in:
@ -107,6 +107,10 @@ plKey hsKeyedObject::RegisterAs(plFixedKeyId fixedKey)
|
||||
if (key == nil)
|
||||
{
|
||||
key = hsgResMgr::ResMgr()->NewKey(meUoid, this);
|
||||
|
||||
// the key list "helpfully" assigns us an object id.
|
||||
// we don't want one for fixed keys however (initialization order might bite us in the ass)
|
||||
static_cast<plKeyImp*>(key)->SetObjectID(0);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user