Fixed an issue where the gang equipment screen would freeze the game if a script installed augmentations while it is open.

This commit is contained in:
Olivier Gagnon 2021-03-07 13:15:15 -05:00
parent b35e25e5dc
commit 4bd1fce1f6
2 changed files with 4 additions and 0 deletions

@ -246,5 +246,7 @@ export let CONSTANTS: IMap<any> = {
Misc.
* Fixed an issue where SF3 was listed as infinitly repeatable and SF12 as
having a limit of 3.
* Fixed an issue where the gang equipment screen would freeze the game if a
script installed augmentations while it is open.
`
}

@ -1942,6 +1942,8 @@ Gang.prototype.setGangMemberTaskDescription = function(memberObj, taskName) {
Gang.prototype.clearUI = function() {
if (UIElems.gangContainer instanceof Element) { removeElement(UIElems.gangContainer); }
if (UIElems.gangMemberUpgradeBox instanceof Element) { removeElement(UIElems.gangMemberUpgradeBox); }
for (const prop in UIElems) {
UIElems[prop] = null;
}