Code: Select all
while ( mCur )
{
mNext = mCur->NextItem;
if ( mCur->mDWSlotRow )
{
mCur->mSISlotBox->removeEvent( CEGUI::StaticImage::EventDragDropItemDropped );
mCur->mSISlotBox->removeEvent( CEGUI::StaticImage::EventChildAdded );
mCur->mSISlotBox->removeEvent( CEGUI::StaticImage::EventChildRemoved );
if ( mCur->GUIInvItemEquip )
{
mCur->mSISlotBox->removeChildWindow( mCur->GUIInvItemEquip->getDragContainer() );
delete mCur->GUIInvItemEquip;
}
mWinMgr->destroyWindow( mCur->mDWSlotRow );
}
delete mCur;
mCur = mNext;
}
Causes me all kinds of grief when mWinMgr->destroyWindow( mCur->mDWSlotRow ); gets called.
