fixed issue 49

This commit is contained in:
BetaSteward 2010-12-06 00:04:36 +00:00
parent 2044b00a99
commit 8d176bf82b

View file

@ -658,7 +658,7 @@ public abstract class GameImpl<T extends GameImpl<T>> implements Game, Serializa
if (perm.getAttachments().size() > 0) {
for (UUID attachmentId: perm.getAttachments()) {
Permanent attachment = getPermanent(attachmentId);
if (!(attachment.getSubtype().contains("Aura") ||
if (attachment != null && !(attachment.getSubtype().contains("Aura") ||
attachment.getSubtype().contains("Equipment") ||
attachment.getSubtype().contains("Fortification"))) {
if (perm.removeAttachment(id, this))