aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/SmartScripts
diff options
context:
space:
mode:
authorChaplain <aionthefirst@gmail.com>2011-08-23 18:05:01 +0300
committerChaplain <aionthefirst@gmail.com>2011-08-23 18:09:08 +0300
commitfb2784851099de42c81b10be9820cdb126fc2a56 (patch)
tree1d5cba64a4b7d21ad5d3fc7fdc72af1b5019f083 /src/server/game/AI/SmartScripts
parent7e1f3ceb4435e89a8757e4824700def4b8ecbc12 (diff)
Core: Clean up here and there.
*replase postfix iterator increment\decrement with prefix in cycles *replase strlen(*char) != 0 with *char[0] != '\0' *replase strlen(rStr.c_str()) with rStr.length()
Diffstat (limited to 'src/server/game/AI/SmartScripts')
-rw-r--r--src/server/game/AI/SmartScripts/SmartAI.cpp4
-rw-r--r--src/server/game/AI/SmartScripts/SmartScriptMgr.h1
2 files changed, 2 insertions, 3 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp
index 7305d41ec2d..97bfbd6fb10 100644
--- a/src/server/game/AI/SmartScripts/SmartAI.cpp
+++ b/src/server/game/AI/SmartScripts/SmartAI.cpp
@@ -235,7 +235,7 @@ void SmartAI::EndPath(bool fail)
}
}else
{
- for (ObjectList::iterator iter = targets->begin(); iter != targets->end(); iter++)
+ for (ObjectList::iterator iter = targets->begin(); iter != targets->end(); ++iter)
{
if (GetScript()->IsPlayer((*iter)))
{
@@ -401,7 +401,7 @@ bool SmartAI::IsEscortInvokerInRange()
}
}else
{
- for (ObjectList::iterator iter = targets->begin(); iter != targets->end(); iter++)
+ for (ObjectList::iterator iter = targets->begin(); iter != targets->end(); ++iter)
{
if (GetScript()->IsPlayer((*iter)))
{
diff --git a/src/server/game/AI/SmartScripts/SmartScriptMgr.h b/src/server/game/AI/SmartScripts/SmartScriptMgr.h
index 30024c42932..d6235b05667 100644
--- a/src/server/game/AI/SmartScripts/SmartScriptMgr.h
+++ b/src/server/game/AI/SmartScripts/SmartScriptMgr.h
@@ -1153,7 +1153,6 @@ struct SmartScriptHolder
runOnce = false;
link = 0;
entryOrGuid = 0;
- link = 0;
event_id = 0;
enableTimed = false;
}