diff --git a/indra/llappearance/llavatarappearance.cpp b/indra/llappearance/llavatarappearance.cpp
index 80f78eea2cd05cc50f17daa30e8b3c890c275c9f..44609eb26675adb6d02f433a12c56b8d2e3de59a 100644
--- a/indra/llappearance/llavatarappearance.cpp
+++ b/indra/llappearance/llavatarappearance.cpp
@@ -1736,7 +1736,7 @@ void LLAvatarAppearance::makeJointAliases(LLAvatarBoneInfo* bone_info, joint_ali
     boost::tokenizer tok(aliases, sep);
     for(auto i = tok.begin(); i != tok.end(); ++i)
     {
-        if (joint_alias_map.contains(*i))
+        if (joint_alias_map.find(*i) != joint_alias_map.end())
         {
             LL_WARNS() << "avatar skeleton:  Joint alias \"" << *i << "\" remapped from " << joint_alias_map[*i] << " to " << bone_name << LL_ENDL;
         }