summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordolphin <dolphin@lindenlab.com>2013-05-20 22:07:41 -0700
committerdolphin <dolphin@lindenlab.com>2013-05-20 22:07:41 -0700
commit10c2758a057b7287894acbaf909b21b7fc656c06 (patch)
tree4c9eb47119610193f275c30e25ad1dad9b443673
parent716a963d5544977863d07770c3c6449b3d9897bb (diff)
fixed LLScriptEdCore::getSelectedExperience
-rwxr-xr-xindra/newview/llpreviewscript.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/indra/newview/llpreviewscript.cpp b/indra/newview/llpreviewscript.cpp
index 59a206b4d1..0d7a8678a1 100755
--- a/indra/newview/llpreviewscript.cpp
+++ b/indra/newview/llpreviewscript.cpp
@@ -1300,12 +1300,7 @@ void LLScriptEdCore::clearExperiences()
LLUUID LLScriptEdCore::getSelectedExperience()const
{
- LLSD value = mExperiences->getSelectedValue();
- if(value.has(LLExperienceCache::EXPERIENCE_ID))
- {
- return value[LLExperienceCache::EXPERIENCE_ID].asUUID();
- }
- return LLUUID::null;
+ return (LLUUID)mExperiences->getSelectedValue();
}
void LLScriptEdCore::setAssociatedExperience( const LLUUID& experience_id )