Core/Warden: Various cleanups and warning fixes
This commit is contained in:
1 parent
5cd6165ab1
commit
abb017dbeb
8 files changed
+27
-25
No files matched your search
@@ -96,8 +96,10 @@ m_playerRecentlyLogout(false), m_playerSave(false),
|
||||
m_sessionDbcLocale(sWorld->GetAvailableDbcLocale(locale)),
|
||||
m_sessionDbLocaleIndex(locale),
|
||||
m_latency(0), m_TutorialsChanged(false), recruiterId(recruiter),
|
||||
isRecruiter(isARecruiter), timeLastWhoCommand(0),_warden(NULL)
|
||||
isRecruiter(isARecruiter), timeLastWhoCommand(0)
|
||||
{
|
||||
_warden = NULL;
|
||||
|
||||
if (sock)
|
||||
{
|
||||
m_Address = sock->GetRemoteAddress();
|
||||
@@ -1123,13 +1125,13 @@ void WorldSession::InitWarden(BigNumber* k, std::string os)
|
||||
{
|
||||
if (os == "Win")
|
||||
{
|
||||
_warden = (Warden*)new WardenWin();
|
||||
_warden = new WardenWin();
|
||||
_warden->Init(this, k);
|
||||
}
|
||||
else if (os == "OSX")
|
||||
{
|
||||
// Disabled as it is causing the client to crash
|
||||
// _warden = (Warden*)new WardenMac();
|
||||
// _warden = new WardenMac();
|
||||
// _warden->Init(this, k);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user