mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 13:47:57 +03:00
Check which slots we have when copying function.
This commit is contained in:
parent
638ac5797b
commit
55f24a1ee1
1 changed files with 8 additions and 2 deletions
|
@ -446,15 +446,21 @@ void CBasicBlock::CopyFunctionFrom(const std::shared_ptr<CBasicBlock>& other)
|
|||
#ifdef _DEBUG
|
||||
std::copy(std::begin(other->m_linkBlock), std::end(other->m_linkBlock), m_linkBlock);
|
||||
#endif
|
||||
if(
|
||||
HasLinkSlot(LINK_SLOT_NEXT)
|
||||
#ifdef _DEBUG
|
||||
if(m_linkBlock[LINK_SLOT_NEXT])
|
||||
&& m_linkBlock[LINK_SLOT_NEXT]
|
||||
#endif
|
||||
)
|
||||
{
|
||||
UnlinkBlock(LINK_SLOT_NEXT);
|
||||
}
|
||||
if(
|
||||
HasLinkSlot(LINK_SLOT_BRANCH)
|
||||
#ifdef _DEBUG
|
||||
if(m_linkBlock[LINK_SLOT_BRANCH])
|
||||
&& m_linkBlock[LINK_SLOT_BRANCH]
|
||||
#endif
|
||||
)
|
||||
{
|
||||
UnlinkBlock(LINK_SLOT_BRANCH);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue