This is the worst code I've ever seen, even worse than Terraria and it's in an MMORPG called flyff.
Basically, when compiling under x64 it fails to save the game due to an invalid pointer.
How does this happen?
Sending the value to the other thread: