summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterregionrestarting.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llfloaterregionrestarting.cpp')
-rw-r--r--indra/newview/llfloaterregionrestarting.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/newview/llfloaterregionrestarting.cpp b/indra/newview/llfloaterregionrestarting.cpp
index 09518fff2d..899216b966 100644
--- a/indra/newview/llfloaterregionrestarting.cpp
+++ b/indra/newview/llfloaterregionrestarting.cpp
@@ -30,8 +30,7 @@
#include "llfloaterreg.h"
#include "lluictrl.h"
-#include "llenvmanager.h"
-
+#include "llagent.h"
static S32 mSeconds;
@@ -59,7 +58,7 @@ BOOL LLFloaterRegionRestarting::postBuild()
refresh();
- LLEnvManagerNew::instance().setRegionChangeCallback(boost::bind(&LLFloaterRegionRestarting::regionChange, this));
+ gAgent.addRegionChangedCallback(boost::bind(&LLFloaterRegionRestarting::regionChange, this));
return TRUE;
}