aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2016-08-23 21:51:49 -0300
committerjoschiwald <joschiwald.trinity@gmail.com>2017-02-18 15:49:06 +0100
commitc04384b6915ac347050115b329084285794a3dea (patch)
treefda6d0589e1b0322e0a9537d8008b182d5e22024
parentab6f8f9fb78221547f32b4737cf3b43eebe0653c (diff)
Core/SmartAI: fix warning reported by VS2015
(cherry picked from commit 83c032c2a8cd688183c29ca5caffc26817d11a03)
-rw-r--r--src/server/game/AI/SmartScripts/SmartScript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp
index 7ddb16a81a9..6053823c5f0 100644
--- a/src/server/game/AI/SmartScripts/SmartScript.cpp
+++ b/src/server/game/AI/SmartScripts/SmartScript.cpp
@@ -1035,7 +1035,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
for (ObjectList::const_iterator itr = targets->begin(); itr != targets->end(); ++itr)
if (IsCreature(*itr))
- (*itr)->ToCreature()->UpdateEntry(e.action.updateTemplate.creature, nullptr, e.action.updateTemplate.updateLevel);
+ (*itr)->ToCreature()->UpdateEntry(e.action.updateTemplate.creature, nullptr, e.action.updateTemplate.updateLevel != 0);
delete targets;
break;