-Fix for issue 583 (fireball crash)

-- converted an array into a vector to avoid weird edge cases
-- fixed bugs with array "backupTargets"
This commit is contained in:
wagic.the.homebrew
2011-05-26 12:27:44 +00:00
parent ffda1d0548
commit a84eb8dc22
10 changed files with 96 additions and 72 deletions

View File

@@ -67,7 +67,7 @@ public:
virtual int full()
{
if (maxtargets != -1 && cursor >= maxtargets)
if (maxtargets != -1 && ((int) (targets.size())) >= maxtargets)
{
return 1;
}
@@ -79,7 +79,7 @@ public:
;
virtual int ready()
{
return cursor;
return (int) (targets.size());
}
;
virtual ~TargetChooser()