From 687f4a1bcd0876d9a8949f105649ecd40447caa0 Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Wed, 7 Mar 2012 21:21:16 +0000 Subject: [PATCH] Fixing problems with empty skirmish side. --- gemp-lotr/gemp-lotr-web/src/main/webapp/js/gameAnimations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gameAnimations.js b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gameAnimations.js index 6b90e8620..57e808a45 100644 --- a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gameAnimations.js +++ b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gameAnimations.js @@ -543,7 +543,7 @@ var GameAnimations = Class.extend({ var cardId = element.getAttribute("cardId"); var opposingCardIds = element.getAttribute("otherCardIds"); - if (opposingCardIds != "") + if (opposingCardIds != null && opposingCardIds != "") $(".card:cardId(" + opposingCardIds + ")").each(function() { $(this).data("card").skirmish = true; });