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()
This commit is contained in:
@@ -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)))
|
||||
{
|
||||
|
||||
@@ -1153,7 +1153,6 @@ struct SmartScriptHolder
|
||||
runOnce = false;
|
||||
link = 0;
|
||||
entryOrGuid = 0;
|
||||
link = 0;
|
||||
event_id = 0;
|
||||
enableTimed = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user