aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Tickets/TicketMgr.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2014-10-25 17:11:35 +0200
committerShauren <shauren.trinity@gmail.com>2014-10-25 17:11:35 +0200
commit10fb948c409e2e4a68b77b7cfc41c068fcbd0bf4 (patch)
treeeb6520c7e28aed4ffd660b7af15ce8592e4d30c2 /src/server/game/Tickets/TicketMgr.cpp
parent5eb9fe1ea8653c7ae23e4a8c2fa9f8f3073e032d (diff)
Core/Entities: Changed a few lowguid uses to ObjectGuid::LowType
Diffstat (limited to 'src/server/game/Tickets/TicketMgr.cpp')
-rw-r--r--src/server/game/Tickets/TicketMgr.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/server/game/Tickets/TicketMgr.cpp b/src/server/game/Tickets/TicketMgr.cpp
index 4877ec27a20..9b8f4fb8b6a 100644
--- a/src/server/game/Tickets/TicketMgr.cpp
+++ b/src/server/game/Tickets/TicketMgr.cpp
@@ -62,7 +62,12 @@ bool GmTicket::LoadFromDB(Field* fields)
_posY = fields[++index].GetFloat();
_posZ = fields[++index].GetFloat();
_lastModifiedTime = fields[++index].GetUInt32();
- _closedBy = ObjectGuid(uint64(0), uint64(fields[++index].GetInt64()));
+ int64 closedBy = fields[++index].GetInt64();
+ if (closedBy < 0)
+ _closedBy.SetRawValue(0, uint64(closedBy));
+ else
+ _closedBy = ObjectGuid(HIGHGUID_PLAYER, uint64(closedBy));
+
_assignedTo = ObjectGuid(HIGHGUID_PLAYER, fields[++index].GetUInt64());
_comment = fields[++index].GetString();
_response = fields[++index].GetString();