1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-06 12:45:36 +00:00

Sort ESM3ExteriorCellRefIds earlier than StringRefIds

Causes inconsistency with the serialized type enumeration, but necessary for COC to work correctly
This commit is contained in:
Alexei Kotov 2023-07-16 17:06:31 +03:00
parent 98bb9fc125
commit 25f5c5651d

View file

@ -49,7 +49,7 @@ namespace ESM
{ {
public: public:
using Value using Value
= std::variant<EmptyRefId, StringRefId, FormIdRefId, GeneratedRefId, IndexRefId, ESM3ExteriorCellRefId>; = std::variant<EmptyRefId, ESM3ExteriorCellRefId, StringRefId, FormIdRefId, GeneratedRefId, IndexRefId>;
// Constructs RefId from a serialized string containing byte by byte copy of RefId::mValue. // Constructs RefId from a serialized string containing byte by byte copy of RefId::mValue.
static ESM::RefId deserialize(std::string_view value); static ESM::RefId deserialize(std::string_view value);