diff options
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llvoiceclient.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/indra/newview/llvoiceclient.cpp b/indra/newview/llvoiceclient.cpp index e140c6f2ee..d8bf781ce0 100644 --- a/indra/newview/llvoiceclient.cpp +++ b/indra/newview/llvoiceclient.cpp @@ -7322,16 +7322,18 @@ bool LLVoiceClient::setVoiceFont(const LLUUID& id) return false; } - if (!hasVoiceFonts()) - { - LL_DEBUGS("Voice") << "Voice fonts not available." << LL_ENDL; - return false; - } - - if (!id.isNull() && (mVoiceFontMap.find(&id) == mVoiceFontMap.end())) + if (!id.isNull()) { - LL_DEBUGS("Voice") << "Invalid voice font " << id << LL_ENDL; - return false; + if (!hasVoiceFonts()) + { + LL_DEBUGS("Voice") << "Voice fonts not available." << LL_ENDL; + return false; + } + else if (mVoiceFontMap.find(&id) == mVoiceFontMap.end()) + { + LL_DEBUGS("Voice") << "Invalid voice font " << id << LL_ENDL; + return false; + } } // *TODO: Check for expired fonts? |