diff options
Diffstat (limited to 'src/game/Object.h')
| -rw-r--r-- | src/game/Object.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/Object.h b/src/game/Object.h index 75d75be0728..52eacf0bc23 100644 --- a/src/game/Object.h +++ b/src/game/Object.h @@ -102,8 +102,8 @@ struct WorldLocation float y; float z; float o; - explicit WorldLocation(uint32 mapid = 0, float x = 0, float y = 0, float z = 0, float o = 0) - : mapid(mapid), x(x), y(y), z(z), o(o) {} + explicit WorldLocation(uint32 _mapid = 0, float _x = 0, float _y = 0, float _z = 0, float _o = 0) + : mapid(_mapid), x(_x), y(_y), z(_z), o(_o) {} WorldLocation(WorldLocation const &loc) : mapid(loc.mapid), x(loc.x), y(loc.y), z(loc.z), o(loc.o) {} }; @@ -138,6 +138,7 @@ class TRINITY_DLL_SPEC Object uint32 GetGUIDHigh() const { return GUID_HIPART(GetUInt64Value(0)); } const ByteBuffer& GetPackGUID() const { return m_PackGUID; } uint32 GetEntry() const { return GetUInt32Value(OBJECT_FIELD_ENTRY); } + void SetEntry(uint32 entry) { SetUInt32Value(OBJECT_FIELD_ENTRY, entry); } uint8 GetTypeId() const { return m_objectTypeId; } bool isType(uint16 mask) const { return (mask & m_objectType); } |
