Bug fix for is_owned_by_me check: if session_id can't be found as a source object, try from_id

This commit is contained in:
Inusaito Sayori
2013-08-02 16:50:31 -04:00
parent ea69a7bfa9
commit 19f03e179d

View File

@@ -2226,7 +2226,7 @@ void process_improved_im(LLMessageSystem *msg, void **user_data)
}
LLViewerObject *source = gObjectList.findObject(session_id); //Session ID is probably the wrong thing.
if (source)
if (source || (source = gObjectList.findObject(from_id)))
{
is_owned_by_me = source->permYouOwner();
}