Core/SAI: Change SmartScript::GetTargets to return an ObjectList instead of a ObjectList*

Applied the same treatment to GetWorldObjectsInDist

Honestly no idea why the original idea insisted so much
on using pointers. No more missing null checks or deletes.

SmartAI's "ObjectList" is now a std::vector instead of a std::list
because no where it was being used as an actual list.

Original idea by DDuarte :P
This commit is contained in:
ariel-
2017-06-03 05:21:06 -03:00
parent abac1b34bc
commit a97439e8d6
5 changed files with 746 additions and 1425 deletions

File diff suppressed because it is too large Load Diff