Issue with Switch on Enum to set Image

I would say, it would make it less error-prone (like the errors you got ^.^), and i doubt, that your planets care, if they got a struct with everything resource related in it, or if it´s spread out over a bunch of separate arrays. Your HUD might care, seems to be easier to just get the correct icon from a struct instead of setting them each time you check a planet.