Browse Source

[cpp] Fix incorrectly referencing attachment when adding skin to another skin.

Mario Zechner 2 years ago
parent
commit
0fac0504ac
1 changed files with 0 additions and 1 deletions
  1. 0 1
      spine-cpp/spine-cpp/src/spine/Skin.cpp

+ 0 - 1
spine-cpp/spine-cpp/src/spine/Skin.cpp

@@ -164,7 +164,6 @@ void Skin::addSkin(Skin *other) {
 	AttachmentMap::Entries entries = other->getAttachments();
 	AttachmentMap::Entries entries = other->getAttachments();
 	while (entries.hasNext()) {
 	while (entries.hasNext()) {
 		AttachmentMap::Entry &entry = entries.next();
 		AttachmentMap::Entry &entry = entries.next();
-		entry._attachment->reference();
 		setAttachment(entry._slotIndex, entry._name, entry._attachment);
 		setAttachment(entry._slotIndex, entry._name, entry._attachment);
 	}
 	}
 }
 }