diff options
author | Nicholaz Beresford | 2008-09-17 01:49:35 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-17 01:49:35 -0500 |
commit | 5c920015e999cfe9860e769105632891db3e1916 (patch) | |
tree | 1ca88c5b18ee043e6c41b97c3110b002308333d1 /linden/indra/newview/lltooldraganddrop.cpp | |
parent | Created ChangeLog.txt. (diff) | |
download | meta-impy-5c920015e999cfe9860e769105632891db3e1916.zip meta-impy-5c920015e999cfe9860e769105632891db3e1916.tar.gz meta-impy-5c920015e999cfe9860e769105632891db3e1916.tar.bz2 meta-impy-5c920015e999cfe9860e769105632891db3e1916.tar.xz |
VWR-2003: Possible crash in lltooldraganddrop.cpp.
Diffstat (limited to 'linden/indra/newview/lltooldraganddrop.cpp')
-rw-r--r-- | linden/indra/newview/lltooldraganddrop.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linden/indra/newview/lltooldraganddrop.cpp b/linden/indra/newview/lltooldraganddrop.cpp index c492c7b..7a378a9 100644 --- a/linden/indra/newview/lltooldraganddrop.cpp +++ b/linden/indra/newview/lltooldraganddrop.cpp | |||
@@ -929,6 +929,12 @@ void LLToolDragAndDrop::dragOrDrop( S32 x, S32 y, MASK mask, BOOL drop, | |||
929 | { | 929 | { |
930 | LLInventoryObject* cargo = locateInventory(item, cat); | 930 | LLInventoryObject* cargo = locateInventory(item, cat); |
931 | 931 | ||
932 | if (!cargo) | ||
933 | { | ||
934 | handled = FALSE; | ||
935 | break; | ||
936 | } | ||
937 | |||
932 | EAcceptance item_acceptance = ACCEPT_NO; | 938 | EAcceptance item_acceptance = ACCEPT_NO; |
933 | handled = handled && root_view->handleDragAndDrop(x, y, mask, FALSE, | 939 | handled = handled && root_view->handleDragAndDrop(x, y, mask, FALSE, |
934 | mCargoTypes[mCurItemIndex], | 940 | mCargoTypes[mCurItemIndex], |