summaryrefslogtreecommitdiff
path: root/src/game/AI/SmartScripts/SmartScript.h
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2017-09-18 03:16:32 +0200
committerYehonal <yehonal.azeroth@gmail.com>2017-09-18 03:16:32 +0200
commit5ec07ef31ff972dbe3c3be3fdaab4ab8aad9512c (patch)
tree6b2126773aea642162afaeaa6db99103d55184ef /src/game/AI/SmartScripts/SmartScript.h
parentcf627d832717c990b02da5e5ba06b4f218079321 (diff)
Removed more warnings, mostly related to unused-variable
issue #121 We still have to work on unused-parameter
Diffstat (limited to 'src/game/AI/SmartScripts/SmartScript.h')
-rw-r--r--src/game/AI/SmartScripts/SmartScript.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/AI/SmartScripts/SmartScript.h b/src/game/AI/SmartScripts/SmartScript.h
index 16617e7402..548e123317 100644
--- a/src/game/AI/SmartScripts/SmartScript.h
+++ b/src/game/AI/SmartScripts/SmartScript.h
@@ -165,7 +165,7 @@ class SmartScript
CellCoord p(Trinity::ComputeCellCoord(searchObject->GetPositionX(), searchObject->GetPositionY()));
Cell cell(p);
- Trinity::GameObjectWithDbGUIDCheck goCheck(*searchObject, guid);
+ Trinity::GameObjectWithDbGUIDCheck goCheck(guid);
Trinity::GameObjectSearcher<Trinity::GameObjectWithDbGUIDCheck> checker(searchObject, gameObject, goCheck);
TypeContainerVisitor<Trinity::GameObjectSearcher<Trinity::GameObjectWithDbGUIDCheck>, GridTypeMapContainer > objectChecker(checker);
@@ -180,7 +180,7 @@ class SmartScript
CellCoord p(Trinity::ComputeCellCoord(searchObject->GetPositionX(), searchObject->GetPositionY()));
Cell cell(p);
- Trinity::CreatureWithDbGUIDCheck target_check(searchObject, guid);
+ Trinity::CreatureWithDbGUIDCheck target_check(guid);
Trinity::CreatureSearcher<Trinity::CreatureWithDbGUIDCheck> checker(searchObject, creature, target_check);
TypeContainerVisitor<Trinity::CreatureSearcher <Trinity::CreatureWithDbGUIDCheck>, GridTypeMapContainer > unit_checker(checker);