ArcanePariah / Night-of-the-Dead

9 stars 14 forks source link

Fixing wrong display of medal icon at end game ui for lvl 0 medals #218

Closed NiktosNOTD closed 6 years ago

NiktosNOTD commented 6 years ago

Problem was comming from userdata being indexed from 1, and getting fed a 0 index. For whatever reason it was not returning 'default' but a null. Now i simply added an if which in case of 0 sets image no a newly made level 0 medal icon. Before fix before After fix now

This level 0 medal icon is added to 'src/Night of the Dead Assets.SC2Mod' but to work will require you to re-save/upload it's 'bin/' counterpart. I simply ommited changes made to bin/Night of the Dead Assets.SC2Mod in the commit as per your instruction of not accepting changes to files from bin/ folder.