diff options
author | DDuarte <dnpd.dd@gmail.com> | 2015-07-19 17:17:51 +0100 |
---|---|---|
committer | DDuarte <dnpd.dd@gmail.com> | 2015-07-19 17:19:41 +0100 |
commit | cb0e6cac63638fd229cce16c341c6d3d2d77d0d9 (patch) | |
tree | 0a40656230acfc8d1fc0d683bc06df7c63b96245 | |
parent | c44f4de5393fbd643fefef161d60dce7af6d51bc (diff) |
Core/SAI: Fix an issue in IsTextValid when using guids
Fixes #15122
-rw-r--r-- | src/server/game/AI/SmartScripts/SmartScriptMgr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp index a665b9e09ae..dc7a91e23aa 100644 --- a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp +++ b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp @@ -1270,7 +1270,7 @@ bool SmartAIMgr::IsTextValid(SmartScriptHolder const& e, uint32 id) default: if (e.entryOrGuid < 0) { - uint64 entry = uint64(-e.entryOrGuid); + entry = uint32(-e.entryOrGuid); CreatureData const* data = sObjectMgr->GetCreatureData(entry); if (!data) { |