Fix some compiler warnings/errors. Error in llinventorymodelbackgroundfetch was introduced by partial commit.

This commit is contained in:
Shyotl
2013-01-20 17:10:38 -06:00
parent e622e03d2a
commit dc106c5442
6 changed files with 8 additions and 3 deletions

View File

@@ -187,7 +187,8 @@ void LLInventoryModelBackgroundFetch::backgroundFetchCB(void *)
void LLInventoryModelBackgroundFetch::backgroundFetch()
{
if (mBackgroundFetchActive && gAgent.getRegion() && gAgent.getRegion()->capabilitiesReceived())
LLViewerRegion* region = gAgent.getRegion();
if (mBackgroundFetchActive && region && region->capabilitiesReceived())
{
// If we'll be using the capability, we'll be sending batches and the background thing isn't as important.
std::string url = region->getCapability("FetchInventory2");