diff --git a/indra/newview/llviewerregion.cpp b/indra/newview/llviewerregion.cpp
index 568a4049f03b67e3ce802704ee0416247fbd0db6..d060d2593c08c47c3ccfbd5d9ccad3c89550e476 100644
--- a/indra/newview/llviewerregion.cpp
+++ b/indra/newview/llviewerregion.cpp
@@ -108,7 +108,7 @@ class BaseCapabilitiesComplete : public LLHTTPClient::Responder
 
     void result(const LLSD& content)
     {
-		if(!mRegion || this != mRegion->getHttpResponderPtr())//region is removed or responder is not created.
+		if(!mRegion || LLHTTPClient::ResponderPtr(this) != mRegion->getHttpResponderPtr()) //region is removed or responder is not created.
 		{
 			return ;
 		}