Mercurial > repos > IBBoard.ArmyBuilder.API
changeset 1:1c19230d568d
Fixes #76 - Duplicate file table entries
* Add a "doesn't contain" check to adding file entries
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 19 Apr 2009 11:38:29 +0000 |
parents | 1a5205612b72 |
children | d5ba733cd289 |
files | ABFile.cs |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ABFile.cs Sun Apr 19 11:24:10 2009 +0000 +++ b/ABFile.cs Sun Apr 19 11:38:29 2009 +0000 @@ -52,7 +52,7 @@ public void AddFileTableEntry(FileTableEntry tableEntry) { - if (tableEntry!=null) + if (tableEntry!=null && !files.Contains(tableEntry)) { files.Add(tableEntry); tableEntry.ParentFile = this;