Browse Source

Fix infinite loop bug with UnflectAPI rollback

develop
Anton Tarasenko 1 year ago
parent
commit
15b1abc8c3
  1. 2
      sources/BaseAPI/API/Unflect/UnflectApi.uc

2
sources/BaseAPI/API/Unflect/UnflectApi.uc

@ -67,6 +67,7 @@ public final function _drop() {
// Drop is called when Acedia is shutting down, so releasing references isn't necessary
iter = HashTableIterator(completedReplacements.Iterate());
while (!iter.HasFinished()) {
nextFunctionInstance = none;
nextFunctionName = Text(iter.GetKey());
nextSources = ByteArrayBox(originalScriptCodes.GetItem(nextFunctionName));
if (nextSources != none ) {
@ -75,6 +76,7 @@ public final function _drop() {
if (nextFunctionInstance != none) {
nextFunctionInstance.script = nextSources.Get();
}
iter.Next();
}
}

Loading…
Cancel
Save