Core: Fix annoying compile warning and some other minor changes here and there
This commit is contained in:
@@ -36,8 +36,7 @@ struct Traveller
|
||||
Traveller(const Traveller &obj) : i_traveller(obj) {}
|
||||
Traveller& operator=(const Traveller &obj)
|
||||
{
|
||||
this->~Traveller();
|
||||
new (this) Traveller(obj);
|
||||
this.i_traveller = obj.i_traveller;
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ class Path
|
||||
|
||||
float GetTotalLength() const { return GetTotalLength(0, size()); }
|
||||
|
||||
float GetPassedLength(uint32 curnode, float x, float y, float z)
|
||||
float GetPassedLength(uint32 curnode, float x, float y, float z) const
|
||||
{
|
||||
float len = GetTotalLength(0, curnode);
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include "GridDefines.h"
|
||||
#include "WaypointManager.h"
|
||||
#include "MapManager.h"
|
||||
#include "Log.h"
|
||||
|
||||
WaypointMgr::WaypointMgr()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user