forked from teamnwah/openmw-tes3coop
Retrieve the correct index for the type of record being un-deleted.
This commit is contained in:
parent
6402b82823
commit
3c82e6d034
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ void CSMWorld::IdTable::setRecord (const std::string& id, const RecordBase& reco
|
||||||
|
|
||||||
if (index==-1)
|
if (index==-1)
|
||||||
{
|
{
|
||||||
int index = mIdCollection->getAppendIndex (id);
|
int index = mIdCollection->getAppendIndex (id, type);
|
||||||
|
|
||||||
beginInsertRows (QModelIndex(), index, index);
|
beginInsertRows (QModelIndex(), index, index);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue