summaryrefslogtreecommitdiff
path: root/indra/newview/lltoolobjpicker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/lltoolobjpicker.cpp')
-rw-r--r--indra/newview/lltoolobjpicker.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/newview/lltoolobjpicker.cpp b/indra/newview/lltoolobjpicker.cpp
index a8876da131..8354792e31 100644
--- a/indra/newview/lltoolobjpicker.cpp
+++ b/indra/newview/lltoolobjpicker.cpp
@@ -48,7 +48,6 @@
#include "llviewerwindow.h"
#include "lldrawable.h"
-LLToolObjPicker* gToolObjPicker = NULL;
LLToolObjPicker::LLToolObjPicker()
: LLTool( "ObjPicker", NULL ),
@@ -98,8 +97,8 @@ void LLToolObjPicker::pickCallback(S32 x, S32 y, MASK mask)
objectp = gObjectList.findObject( gLastHitObjectID );
if (objectp)
{
- gToolObjPicker->mHitObjectID = objectp->mID;
- gToolObjPicker->mPicked = TRUE;
+ LLToolObjPicker::getInstance()->mHitObjectID = objectp->mID;
+ LLToolObjPicker::getInstance()->mPicked = TRUE;
}
}