From fc9f1b1f70122b04a9da710a38790fd714778d1d Mon Sep 17 00:00:00 2001 From: Christian 'ketura' McCarty Date: Wed, 9 Apr 2025 20:26:59 -0500 Subject: [PATCH] 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 --- .../src/main/web/js/gemp-022/gameAnimations.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/gameAnimations.js b/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/gameAnimations.js index c35f2326c..7e2dd416e 100644 --- a/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/gameAnimations.js +++ b/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/gameAnimations.js @@ -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();