summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indra/newview/lllocationhistory.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/lllocationhistory.cpp b/indra/newview/lllocationhistory.cpp
index 43512372b1..0059bfd2dc 100644
--- a/indra/newview/lllocationhistory.cpp
+++ b/indra/newview/lllocationhistory.cpp
@@ -47,8 +47,10 @@ void addLocationHistory()
{
LLVector3 position = gAgent.getPositionAgent();
std::string region_name = gAgent.getRegion()->getName();
- std::string location = LLSLURL::buildSLURL(region_name, position.mV[VX],
- position.mV[VY], position.mV[VZ]);
+ std::string location = LLSLURL::buildSLURL(region_name,
+ (S32)(position.mV[VX]),
+ (S32)(position.mV[VY]),
+ (S32)(position.mV[VZ]) );
LLLocationHistory* lh = LLLocationHistory::getInstance();
lh->addItem(location);
lh->save();