Adding a null check to a section of the game animation code that causes a bizarre visual crash out when reloading at the wrong time

This commit is contained in:
Christian 'ketura' McCarty
2025-04-09 20:26:59 -05:00
parent a965c106c4
commit fc9f1b1f70

View File

@@ -255,7 +255,9 @@ var GameAnimations = Class.extend({
if (targetCardId != null) {
var targetCardData = $(".card:cardId(" + targetCardId + ")").data("card");
targetCardData.attachedCards.push(cardDiv);
if(targetCardData != null) {
targetCardData.attachedCards.push(cardDiv);
}
}
next();