1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 19:29:09 +00:00

Fix previous commits not actually nulling out the key

I goofed while porting this from H'uru, where the variable is a
reference. The previous code actually caused the keys to not get deleted
at all.
This commit is contained in:
2023-06-26 00:09:03 +02:00
parent 5d5ba00f7d
commit ea7e4b2ab5

View File

@ -60,7 +60,7 @@ plRegistryKeyList::~plRegistryKeyList()
{
plKeyImp* keyImp = fStaticKeys[i];
if (keyImp && !keyImp->ObjectIsLoaded()) {
keyImp = nullptr;
fStaticKeys[i] = nullptr;
delete keyImp;
}
}