mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-22 07:06:13 +00:00
Swap item serial and create time properties when swapping items
--HG-- branch : fix_item_group_08072017
This commit is contained in:
parent
6cd0f9dbd2
commit
59ce9437c8
1 changed files with 6 additions and 0 deletions
|
@ -2960,6 +2960,8 @@ void CDBCtrlSheet::swapSheet(CDBCtrlSheet *other)
|
||||||
swapDBProps(getItemRMClassTypePtr(), other->getItemRMClassTypePtr());
|
swapDBProps(getItemRMClassTypePtr(), other->getItemRMClassTypePtr());
|
||||||
swapDBProps(getItemRMFaberStatTypePtr(), other->getItemRMFaberStatTypePtr());
|
swapDBProps(getItemRMFaberStatTypePtr(), other->getItemRMFaberStatTypePtr());
|
||||||
swapDBProps(getItemPrerequisitValidPtr(), other->getItemPrerequisitValidPtr());
|
swapDBProps(getItemPrerequisitValidPtr(), other->getItemPrerequisitValidPtr());
|
||||||
|
swapDBProps(getItemSerialPtr(), other->getItemSerialPtr());
|
||||||
|
swapDBProps(getItemCreateTimePtr(), other->getItemCreateTimePtr());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3539,6 +3541,10 @@ void CDBCtrlSheet::copyAspect(CDBCtrlSheet *dest)
|
||||||
dest->setItemRMFaberStatType(getItemRMFaberStatType());
|
dest->setItemRMFaberStatType(getItemRMFaberStatType());
|
||||||
// copy prerequisit valid flag
|
// copy prerequisit valid flag
|
||||||
dest->setItemPrerequisitValid(getItemPrerequisitValid());
|
dest->setItemPrerequisitValid(getItemPrerequisitValid());
|
||||||
|
// copy item serial
|
||||||
|
dest->setItemSerial(getItemSerial());
|
||||||
|
// copy item create time
|
||||||
|
dest->setItemCreateTime(getItemCreateTime());
|
||||||
}
|
}
|
||||||
// if brick, sphrase or sphraseId
|
// if brick, sphrase or sphraseId
|
||||||
if(isSBrick() || isSPhrase() || isSPhraseId())
|
if(isSBrick() || isSPhrase() || isSPhraseId())
|
||||||
|
|
Loading…
Reference in a new issue