VMFInstanceInserter icon indicating copy to clipboard operation
VMFInstanceInserter copied to clipboard

Fix duplicate angle in dictionary error

Open Python1320 opened this issue 4 years ago • 0 comments

The commit https://github.com/Metapyziks/VMFInstanceInserter/commit/9487796dbda67c12e4c8e6508b980125b82a1db2#diff-b6cd5396d3ebfa4934fa608dc1f60ea4R179 introduced the following error:

Unhandled Exception: System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at VMFInstanceInserter.VMFStructure.ParseFGD(String path)
   at VMFInstanceInserter.VMFStructure.ParseFGD(String path)
   at VMFInstanceInserter.Program.Main(String[] args)

I have not tested this change much, but it should fix it.

Python1320 avatar May 04 '20 14:05 Python1320