Fix Linux build error due to F32/S32 conversion warning. Not reviewed.

master
James Cook 2009-07-10 03:14:23 +00:00
parent 91f9835176
commit 24be0ba83c
1 changed files with 4 additions and 2 deletions

View File

@ -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();