Throw right exception.

This commit is contained in:
NathanSweet 2013-08-16 12:23:04 +02:00
parent d641dbc414
commit 92c3fbe946

View File

@ -182,7 +182,7 @@ namespace Spine {
Attachment attachment = null;
if (attachmentName != null) {
attachment = GetAttachment(i, attachmentName);
if (attachment == null) throw new ArgumentNullException("Attachment not found: " + attachmentName + ", for slot: " + slotName);
if (attachment == null) throw new Exception("Attachment not found: " + attachmentName + ", for slot: " + slotName);
}
slot.Attachment = attachment;
return;