From 892bd4057686a21cd9377b16410cb3941163b374 Mon Sep 17 00:00:00 2001 From: megamage Date: Tue, 11 Aug 2009 17:29:56 -0500 Subject: [PATCH] *Fix compile in *nix. --HG-- branch : trunk --- src/game/Corpse.cpp | 2 +- src/game/Corpse.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/Corpse.cpp b/src/game/Corpse.cpp index 3b3a5fc3cc..e15d535ca3 100644 --- a/src/game/Corpse.cpp +++ b/src/game/Corpse.cpp @@ -205,7 +205,7 @@ bool Corpse::LoadFromDB(uint32 guid, Field *fields) SetInstanceId(fields[8].GetUInt32()); m_time = time_t(fields[6].GetUInt64()); - const_cast(m_type) = CorpseType(fields[7].GetUInt32()); + m_type = CorpseType(fields[7].GetUInt32()); if(m_type >= MAX_CORPSE_TYPE) { diff --git a/src/game/Corpse.h b/src/game/Corpse.h index ce47b19b40..ee6556e343 100644 --- a/src/game/Corpse.h +++ b/src/game/Corpse.h @@ -99,7 +99,7 @@ class Corpse : public WorldObject private: GridReference m_gridRef; - const CorpseType m_type; + CorpseType m_type; time_t m_time; 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.