Resolve "Dragging from player trade to inventory takes two tries"

merge-requests/41/head
Ben Saine 3 years ago committed by Nuno Gonçalves (Ulukyn)
parent e784c3aab1
commit 357934fcde

@ -747,6 +747,10 @@ public:
CInterfaceElement *pElt = CWidgetManager::getInstance()->getElementFromId(src);
CDBCtrlSheet *pCSSrc = dynamic_cast<CDBCtrlSheet*>(pElt);
CDBCtrlSheet *pCSDst = dynamic_cast<CDBCtrlSheet*>(pCaller);
// end drag
getInventory().endDrag();
if ((pCSSrc == NULL) || (pCSDst == NULL)) return;
if (pCSSrc->getType() == CCtrlSheetInfo::SheetType_Item)

Loading…
Cancel
Save