Core/MMaps: Fix crash added in 386b5a6fd948b4866cbd9a8a9892e8777922e9c9
# Conflicts: # src/server/game/Movement/MovementGenerators/ChaseMovementGenerator.cpp * fixed cherrypick conflicts
This commit is contained in:
1 parent
2fb644344d
commit
237901719a
6 files changed
+9
-6
No files matched your search
@@ -37,7 +37,6 @@
|
||||
#include "IPLocation.h"
|
||||
#include "MySQLThreading.h"
|
||||
#include "ProcessPriority.h"
|
||||
#include "RealmList.h"
|
||||
#include "Util.h"
|
||||
#include <boost/asio/signal_set.hpp>
|
||||
#include <boost/program_options.hpp>
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
#include "GruntRealmList.h"
|
||||
#include "DatabaseEnv.h"
|
||||
#include "DeadlineTimer.h"
|
||||
#include "IoContext.h"
|
||||
#include "Log.h"
|
||||
#include "Resolver.h"
|
||||
@@ -43,7 +44,7 @@ GruntRealmList* GruntRealmList::Instance()
|
||||
void GruntRealmList::Initialize(Trinity::Asio::IoContext& ioContext, uint32 updateInterval)
|
||||
{
|
||||
_updateInterval = updateInterval;
|
||||
_updateTimer = Trinity::make_unique<boost::asio::deadline_timer>(ioContext);
|
||||
_updateTimer = Trinity::make_unique<Trinity::Asio::DeadlineTimer>(ioContext);
|
||||
_resolver = Trinity::make_unique<boost::asio::ip::tcp_resolver>(ioContext);
|
||||
|
||||
// Get the content of the realmlist table in the database
|
||||
|
||||
@@ -38,6 +38,7 @@ namespace Trinity
|
||||
namespace Asio
|
||||
{
|
||||
class IoContext;
|
||||
class DeadlineTimer;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,7 +68,7 @@ class GruntRealmList
|
||||
|
||||
RealmMap _realms;
|
||||
uint32 _updateInterval;
|
||||
std::unique_ptr<boost::asio::deadline_timer> _updateTimer;
|
||||
std::unique_ptr<Trinity::Asio::DeadlineTimer> _updateTimer;
|
||||
std::unique_ptr<boost::asio::ip::tcp_resolver> _resolver;
|
||||
};
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
#include "BNetRealmList.h"
|
||||
#include "DatabaseEnv.h"
|
||||
#include "DeadlineTimer.h"
|
||||
#include "IoContext.h"
|
||||
#include "Log.h"
|
||||
#include "Resolver.h"
|
||||
@@ -45,7 +46,7 @@ BNetRealmList* BNetRealmList::Instance()
|
||||
void BNetRealmList::Initialize(Trinity::Asio::IoContext& ioContext, uint32 updateInterval, uint16 worldListenPort)
|
||||
{
|
||||
_updateInterval = updateInterval;
|
||||
_updateTimer = Trinity::make_unique<boost::asio::deadline_timer>(ioContext);
|
||||
_updateTimer = Trinity::make_unique<Trinity::Asio::DeadlineTimer>(ioContext);
|
||||
_resolver = Trinity::make_unique<boost::asio::ip::tcp_resolver>(ioContext);
|
||||
|
||||
// Get the content of the realmlist table in the database
|
||||
|
||||
@@ -40,6 +40,7 @@ namespace Trinity
|
||||
namespace Asio
|
||||
{
|
||||
class IoContext;
|
||||
class DeadlineTimer;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,7 +70,7 @@ class BNetRealmList
|
||||
|
||||
RealmMap _realms;
|
||||
uint32 _updateInterval;
|
||||
std::unique_ptr<boost::asio::deadline_timer> _updateTimer;
|
||||
std::unique_ptr<Trinity::Asio::DeadlineTimer> _updateTimer;
|
||||
std::unique_ptr<boost::asio::ip::tcp_resolver> _resolver;
|
||||
std::unique_ptr<WorldListener> _worldListener;
|
||||
};
|
||||
|
||||
@@ -165,7 +165,7 @@ bool ChaseMovementGenerator::Update(Unit* owner, uint32 diff)
|
||||
if (owner->IsHovering())
|
||||
owner->UpdateAllowedPositionZ(x, y, z);
|
||||
|
||||
bool success = _path->CalculatePath(x, y, z, cOwner->CanFly());
|
||||
bool success = _path->CalculatePath(x, y, z, owner->CanFly());
|
||||
if (!success || (_path->GetPathType() & (PATHFIND_NOPATH | PATHFIND_INCOMPLETE)))
|
||||
{
|
||||
if (cOwner)
|
||||
|
||||
Reference in new issue
Block a user