TheDiamondProject / Graphite

MIT License
16 stars 6 forks source link

Classic writer fixes #36

Closed andrews05 closed 3 years ago

andrews05 commented 3 years ago

This PR fixes the classic resource writer map length which was being cast to uint16_t, smaller than it should have been. It also adds an overflow check for name_offset (I swear I added this earlier...). Minor refactor was required to avoid throwing earlier than necessary.