marshallward / TiledSharp

C# library for parsing and importing TMX and TSX files generated by Tiled, a tile map generation tool
http://marshallward.github.io/TiledSharp
Apache License 2.0
329 stars 87 forks source link

Bug fix for animation frame loading #8

Closed Josh1billion closed 9 years ago

Josh1billion commented 9 years ago

Previously, the code was passing each tag (of which there is, at most, one) to the TmxAnimationFrame constructor. Now, it will pass the tags to that constructor. This fixes a bug where a null reference exception was thrown whenever loading a .TMX file which uses animations.

Josh1billion commented 9 years ago

Oops, didn't mean for my second commit to get added to this pull request, just the bug fix part.

marshallward commented 9 years ago

Yes, one of the more annoying GitHub features. I'll merge this and give it a try tonight. Thanks very much for the contribution.

Josh1billion commented 9 years ago

Very cool, glad I could help out. I really appreciate the work you put into this project, as it has made my life much easier.