Fix UniversalId constructor from ESM::RefId

simplify_debugging
elsid 2 years ago
parent 6541ac43f5
commit f2a3462e59
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

@ -276,8 +276,8 @@ CSMWorld::UniversalId::UniversalId(Type type, const std::string& id)
}
CSMWorld::UniversalId::UniversalId(Type type, const ESM::RefId& id)
: UniversalId(type, id.getRefIdString())
{
UniversalId(type, id.getRefIdString());
}
CSMWorld::UniversalId::UniversalId(Type type, int index)

@ -150,6 +150,10 @@ namespace CSMWorld
Params{ UniversalId("Instance: f"), UniversalId::Type_Reference, UniversalId::Class_SubRecord,
UniversalId::ArgumentType_Id, "Instance", "Instance: f", ":./instance.png" },
Params{ UniversalId(UniversalId::Type_Reference, ESM::RefId::stringRefId("g")), UniversalId::Type_Reference,
UniversalId::Class_SubRecord, UniversalId::ArgumentType_Id, "Instance", "Instance: g",
":./instance.png" },
};
INSTANTIATE_TEST_SUITE_P(ValidParams, CSMWorldUniversalIdValidPerTypeTest, ValuesIn(validParams));

Loading…
Cancel
Save