Saving enums?

I’ve made a savegame that loads incorrectly, i figured i ask here in case someone knows a glaring issue with what im trying to save.

I basicly have my own struct with an integer and an enum i created. That struct is used as the key in an Map Array, that has an integer as a value.

It seems to save the Map Array value correctly, and the integer in the struct. But the enum is either saved or loaded wrong and i always get a different one when i load, so i wonder if it is impossible to save stuff with enums, or something.

Thanks!