Hi there:
I am making a simple quest system in which I am storing in a map some structs which contains quest information, even the COMPLETED (bool) state.
If I attempt to set one specific quest to true, it won’t be modified, and the MISSION COMPLETE event will trigger again if I try to trigger it.
I found the solution while writting this post, and I wanted to leave the answer for future noobies like me to find it:
If you want to overwrite the key/value pair of a MAP, you have to add an element to the map using the key corresponding to the value you want to be overwritten. Just like this: