aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2015-08-29 14:06:13 +0200
committerShauren <shauren.trinity@gmail.com>2015-08-29 14:06:13 +0200
commitb0107802064a19d69ce06f7bcf8b8394695e6faf (patch)
treeae0b9abf39221e95d67d71bfb5ebeec28c83a9d6 /src
parent235a6391629fc7be77cbff343172400f407bcaf1 (diff)
Core/Players: Fixed warnings about incorrect creator guid when loading void storage
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Entities/Player/Player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp
index 9d64078cc8c..5003cd52d74 100644
--- a/src/server/game/Entities/Player/Player.cpp
+++ b/src/server/game/Entities/Player/Player.cpp
@@ -17795,7 +17795,7 @@ void Player::_LoadVoidStorage(PreparedQueryResult result)
uint64 itemId = fields[0].GetUInt64();
uint32 itemEntry = fields[1].GetUInt32();
uint8 slot = fields[2].GetUInt8();
- ObjectGuid creatorGuid = ObjectGuid::Create<HighGuid::Player>(fields[3].GetUInt64());
+ ObjectGuid creatorGuid = fields[3].GetUInt64() ? ObjectGuid::Create<HighGuid::Player>(fields[3].GetUInt64()) : ObjectGuid::Empty;
uint32 randomProperty = fields[4].GetUInt32();
uint32 suffixFactor = fields[5].GetUInt32();
uint32 upgradeId = fields[6].GetUInt32();