*Fix compile in *nix.
--HG-- branch : trunk
This commit is contained in:
+1
-1
@@ -205,7 +205,7 @@ bool Corpse::LoadFromDB(uint32 guid, Field *fields)
|
|||||||
SetInstanceId(fields[8].GetUInt32());
|
SetInstanceId(fields[8].GetUInt32());
|
||||||
|
|
||||||
m_time = time_t(fields[6].GetUInt64());
|
m_time = time_t(fields[6].GetUInt64());
|
||||||
const_cast<CorpseType>(m_type) = CorpseType(fields[7].GetUInt32());
|
m_type = CorpseType(fields[7].GetUInt32());
|
||||||
|
|
||||||
if(m_type >= MAX_CORPSE_TYPE)
|
if(m_type >= MAX_CORPSE_TYPE)
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -99,7 +99,7 @@ class Corpse : public WorldObject
|
|||||||
private:
|
private:
|
||||||
GridReference<Corpse> m_gridRef;
|
GridReference<Corpse> m_gridRef;
|
||||||
|
|
||||||
const CorpseType m_type;
|
CorpseType m_type;
|
||||||
time_t m_time;
|
time_t m_time;
|
||||||
GridPair m_grid; // gride for corpse position for fast search
|
GridPair m_grid; // gride for corpse position for fast search
|
||||||
uint32 m_mapId; // map id for fast corpse check at packet requests and in other situations with unloaded map of corpse.
|
uint32 m_mapId; // map id for fast corpse check at packet requests and in other situations with unloaded map of corpse.
|
||||||
|
|||||||
Reference in New Issue
Block a user