summaryrefslogtreecommitdiff
path: root/indra/llui/llkeywords.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llui/llkeywords.cpp')
-rw-r--r--indra/llui/llkeywords.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llui/llkeywords.cpp b/indra/llui/llkeywords.cpp
index a728f66000..a34a426890 100644
--- a/indra/llui/llkeywords.cpp
+++ b/indra/llui/llkeywords.cpp
@@ -359,7 +359,7 @@ void LLKeywords::processTokensGroup(const LLSD& tokens, std::string_view group)
break;
case LLKeywordToken::TT_FUNCTION:
tooltip = getAttribute("return") + " " + outer_itr->first + "(" + getArguments(arguments) + ");";
- if (std::stod(getAttribute("energy")) >= 0)
+ if (getAttribute("energy").empty() || std::stod(getAttribute("energy")) >= 0)
{
tooltip.append("\nEnergy: ");
tooltip.append(getAttribute("energy").empty() ? "0.0" : getAttribute("energy"));
@@ -368,6 +368,7 @@ void LLKeywords::processTokensGroup(const LLSD& tokens, std::string_view group)
{
tooltip += ", Sleep: " + getAttribute("sleep");
}
+ break;
default:
break;
}