mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-24 11:23:50 +00:00
Get the correct index for the type of the record being cloned.
This commit is contained in:
parent
445f828014
commit
4152086890
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ void CSMWorld::IdTable::cloneRecord(const std::string& origin,
|
||||||
const std::string& destination,
|
const std::string& destination,
|
||||||
CSMWorld::UniversalId::Type type)
|
CSMWorld::UniversalId::Type type)
|
||||||
{
|
{
|
||||||
int index = mIdCollection->getAppendIndex (destination);
|
int index = mIdCollection->getAppendIndex (destination, type);
|
||||||
|
|
||||||
beginInsertRows (QModelIndex(), index, index);
|
beginInsertRows (QModelIndex(), index, index);
|
||||||
mIdCollection->cloneRecord(origin, destination, type);
|
mIdCollection->cloneRecord(origin, destination, type);
|
||||||
|
|
Loading…
Reference in a new issue