diff options
author | Rye Mutt <rye@alchemyviewer.org> | 2022-10-30 06:56:16 -0400 |
---|---|---|
committer | Rye Mutt <rye@alchemyviewer.org> | 2022-10-30 06:56:16 -0400 |
commit | d0e07c770b978d57210a5403bc42cc48e700ef63 (patch) | |
tree | 1d4285bf81dd94fd3de19c33d57658913a1660a4 /indra/newview/llenvironment.cpp | |
parent | a022452ff56c31cb028d5a17d827c82f1a74e624 (diff) |
Fix checks for empty LLSD maps to use size and not emptyMap which is for creating an empty LLSDMap type.
Diffstat (limited to 'indra/newview/llenvironment.cpp')
-rw-r--r-- | indra/newview/llenvironment.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llenvironment.cpp b/indra/newview/llenvironment.cpp index 1300cf3658..a01410e521 100644 --- a/indra/newview/llenvironment.cpp +++ b/indra/newview/llenvironment.cpp @@ -3086,7 +3086,7 @@ bool LLEnvironment::loadFromSettings() LL_INFOS("ENVIRONMENT") << "Unable to open previous session environment file " << user_filepath << LL_ENDL; } - if (!env_data.isMap() || env_data.emptyMap()) + if (!env_data.isMap() || (env_data.size() == 0)) { LL_DEBUGS("ENVIRONMENT") << "Empty map loaded from: " << user_filepath << LL_ENDL; return false; |