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:
1 parent
7e1f3ceb44
commit
fb27848510
13 files changed
+18
-20
No files matched your search
@@ -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)))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user