Cannot modify member values of scruct contained in a map

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.

If anyone knows how to modify it, I’ll be glad to hear how.
Thanks in advance!

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:


More specific:

Please, go give a like to this post, where I found the solution:

Good luck, everyone!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.