diff --git a/nel/include/nel/misc/debug.h b/nel/include/nel/misc/debug.h index 9b6e48376..67c6837da 100644 --- a/nel/include/nel/misc/debug.h +++ b/nel/include/nel/misc/debug.h @@ -380,7 +380,7 @@ extern bool _assertex_stop_1(bool &ignoreNextTime); #define nlassume(exp) do { } while (0) #endif -#ifdef NL_NO_DEBUG +#ifdef NL_NO_ASSERT # define nlassert(exp) nlassume(exp) # define nlassertonce(exp) nlassume(exp) # define nlassertex(exp, str) nlassume(exp) diff --git a/nel/include/nel/misc/types_nl.h b/nel/include/nel/misc/types_nl.h index 5af1ce3f3..b8d888932 100644 --- a/nel/include/nel/misc/types_nl.h +++ b/nel/include/nel/misc/types_nl.h @@ -274,7 +274,7 @@ //#define NL_NO_DEBUG #undef NL_NO_DEBUG - +#define NL_NO_ASSERT // Standard types diff --git a/ryzom/client/src/interface_v3/action_handler_item.cpp b/ryzom/client/src/interface_v3/action_handler_item.cpp index ff4034b3d..f931f1d76 100644 --- a/ryzom/client/src/interface_v3/action_handler_item.cpp +++ b/ryzom/client/src/interface_v3/action_handler_item.cpp @@ -747,6 +747,10 @@ public: CInterfaceElement *pElt = CWidgetManager::getInstance()->getElementFromId(src); CDBCtrlSheet *pCSSrc = dynamic_cast(pElt); CDBCtrlSheet *pCSDst = dynamic_cast(pCaller); + + // end drag + getInventory().endDrag(); + if ((pCSSrc == NULL) || (pCSDst == NULL)) return; if (pCSSrc->getType() == CCtrlSheetInfo::SheetType_Item)