summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/gui/table.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/gui/table.js b/scripts/gui/table.js
index ea7254d..01726e2 100644
--- a/scripts/gui/table.js
+++ b/scripts/gui/table.js
@@ -146,7 +146,8 @@ class Table{
return false;
}
this.cards[data.id] = this.cards[data.card];
- delete this.cards[data.card];
+ if (data.card != data.id)
+ delete this.cards[data.card];
this.cards[data.id].id = data.id;
this.cards[data.id].generateElements(data.data);
}