aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Entities/Object
diff options
context:
space:
mode:
authorSpp <spp@jorge.gr>2011-08-03 11:23:08 +0200
committerSpp <spp@jorge.gr>2011-08-03 11:23:08 +0200
commite7327e7e94234467eef2826851f1f5bb46b44b48 (patch)
tree94c445afe4a2cd72b14a986937738f44779de22b /src/server/game/Entities/Object
parent8572d5d0e9f34a85a6404769bbb6d26e2c0f7b58 (diff)
Core: Fix compile without PCH and fix some warnings
Diffstat (limited to 'src/server/game/Entities/Object')
-rwxr-xr-xsrc/server/game/Entities/Object/Object.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server/game/Entities/Object/Object.h b/src/server/game/Entities/Object/Object.h
index 67cfcdfdb5d..0ec3312834d 100755
--- a/src/server/game/Entities/Object/Object.h
+++ b/src/server/game/Entities/Object/Object.h
@@ -149,7 +149,7 @@ class Object
ClearUpdateMask(true);
}
- const uint64 GetGUID() const { return GetUInt64Value(0); }
+ uint64 GetGUID() const { return GetUInt64Value(0); }
uint32 GetGUIDLow() const { return GUID_LOPART(GetUInt64Value(0)); }
uint32 GetGUIDMid() const { return GUID_ENPART(GetUInt64Value(0)); }
uint32 GetGUIDHigh() const { return GUID_HIPART(GetUInt64Value(0)); }
@@ -169,25 +169,25 @@ class Object
virtual void DestroyForPlayer(Player *target, bool anim = false) const;
- const int32& GetInt32Value(uint16 index) const
+ int32 GetInt32Value(uint16 index) const
{
ASSERT(index < m_valuesCount || PrintIndexError(index , false));
return m_int32Values[ index ];
}
- const uint32 GetUInt32Value(uint16 index) const
+ uint32 GetUInt32Value(uint16 index) const
{
ASSERT(index < m_valuesCount || PrintIndexError(index , false));
return m_uint32Values[ index ];
}
- const uint64 GetUInt64Value(uint16 index) const
+ uint64 GetUInt64Value(uint16 index) const
{
ASSERT(index + 1 < m_valuesCount || PrintIndexError(index , false));
return *((uint64*)&(m_uint32Values[ index ]));
}
- const float& GetFloatValue(uint16 index) const
+ float GetFloatValue(uint16 index) const
{
ASSERT(index < m_valuesCount || PrintIndexError(index , false));
return m_floatValues[ index ];