Core: Fix annoying compile warning and some other minor changes here and there

This commit is contained in:
Spp-
2011-08-01 13:46:00 +02:00
parent 0457d98405
commit 1fc1da842e
5 changed files with 47 additions and 30 deletions
+1 -2
View File
@@ -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;
}
+1 -1
View File
@@ -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()
{