mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
https://stackoverflow.com/a/44888113/632035 Pickle can't deal with loading sets (and probably dicts) of objects with custom __hash__ functions that depend on their state because __hash__ can be called before __setstate__. Make the hash function stupider (but still correct) by just relying on the object ID.