1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-09 21:42:13 +00:00

compose info record IDs from actual record ID and parent topic ID (to make sure IDs are unique)

This commit is contained in:
Marc Zinnschlag 2013-11-05 12:57:55 +01:00
parent 2d4a6c0edf
commit c545b3682a

View File

@ -34,8 +34,7 @@ void CSMWorld::InfoCollection::load (const Info& record, bool base)
void CSMWorld::InfoCollection::load (ESM::ESMReader& reader, bool base, const ESM::Dialogue& dialogue)
{
/// \todo put records into proper order
/// \todo adjust ID
std::string id = reader.getHNOString ("INAM");
std::string id = dialogue.mId + "#" + reader.getHNOString ("INAM");
if (reader.isNextSub ("DELE"))
{