1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-24 06:53:50 +00:00

Get the correct index for the type of the record being cloned.

This commit is contained in:
cc9cii 2015-05-30 18:24:26 +10:00
parent 445f828014
commit 4152086890

View file

@ -140,7 +140,7 @@ void CSMWorld::IdTable::cloneRecord(const std::string& origin,
const std::string& destination,
CSMWorld::UniversalId::Type type)
{
int index = mIdCollection->getAppendIndex (destination);
int index = mIdCollection->getAppendIndex (destination, type);
beginInsertRows (QModelIndex(), index, index);
mIdCollection->cloneRecord(origin, destination, type);