mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 03:39:55 +00:00
Fix UniversalId constructor from ESM::RefId
This commit is contained in:
parent
6541ac43f5
commit
f2a3462e59
@ -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…
x
Reference in New Issue
Block a user