Skip to content
Snippets Groups Projects
Commit 18259c38 authored by Arkerthan's avatar Arkerthan
Browse files

remove sold slave from favorites array

parent 14f70a61
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,8 @@ globalThis.removeSlave = function(slave) { ...@@ -35,6 +35,8 @@ globalThis.removeSlave = function(slave) {
} }
} }
V.favorites.delete(AS_ID);
if (INDEX >= 0 && INDEX < LENGTH) { if (INDEX >= 0 && INDEX < LENGTH) {
if (V.incubator > 0) { if (V.incubator > 0) {
V.tanks.forEach(child => { V.tanks.forEach(child => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment