summaryrefslogtreecommitdiff
path: root/indra/newview/llvoiceclient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llvoiceclient.cpp')
-rw-r--r--indra/newview/llvoiceclient.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llvoiceclient.cpp b/indra/newview/llvoiceclient.cpp
index 497f1db44d..007d95043d 100644
--- a/indra/newview/llvoiceclient.cpp
+++ b/indra/newview/llvoiceclient.cpp
@@ -7262,8 +7262,13 @@ bool LLVoiceClient::setVoiceFont(const LLUUID& id)
bool LLVoiceClient::setVoiceFont(const std::string &session_handle, const LLUUID& id)
{
sessionState *session = findSession(session_handle);
+ if (!session)
+ {
+ LL_DEBUGS("Voice") << "Invalid Session." << LL_ENDL;
+ return false;
+ }
- if (!session || !session->mVoiceEnabled || !hasVoiceFonts())
+ if (!hasVoiceFonts())
{
LL_DEBUGS("Voice") << "Voice fonts not available." << LL_ENDL;
return false;