Fixed a bug in the regenerate function
Merge branch 'master' of https://github.com/zeDoctor/gdd2xna