From 5ec07ef31ff972dbe3c3be3fdaab4ab8aad9512c Mon Sep 17 00:00:00 2001 From: Yehonal Date: Mon, 18 Sep 2017 03:16:32 +0200 Subject: Removed more warnings, mostly related to unused-variable issue #121 We still have to work on unused-parameter --- src/game/AI/SmartScripts/SmartScript.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game/AI/SmartScripts/SmartScript.h') 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 checker(searchObject, gameObject, goCheck); TypeContainerVisitor, 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 checker(searchObject, creature, target_check); TypeContainerVisitor, GridTypeMapContainer > unit_checker(checker); -- cgit v1.2.3