diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp
index 55be6bdb7d60438fcb6e8f0d71203fbd3929cb58..a68e941c0cf57694498058e5ac7c3a73f2520101 100644
--- a/indra/newview/llviewermessage.cpp
+++ b/indra/newview/llviewermessage.cpp
@@ -1719,7 +1719,7 @@ void LLOfferInfo::sendReceiveResponse(const LLUUID &destination_folder_id)
 		im = IM_GROUP_NOTICE;
 	}
 
-	msg->addU8Fast(_PREHASH_Dialog, (U8)(mIM + 1));
+	msg->addU8Fast(_PREHASH_Dialog, (U8)(im + 1));
 	msg->addBinaryDataFast(_PREHASH_BinaryBucket, &(destination_folder_id.mData),
 						   sizeof(destination_folder_id.mData));
 	// send the message