Fixed a bug

This commit is contained in:
Davis King 2011-07-08 15:59:24 -04:00
parent a0bb4ea8df
commit af9071f996
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ namespace
const int num = sa = words[4];
img.boxes.resize(num);
}
else if (words.size() > 4 && words[2] == "for" && words[3] == "object")
else if (words.size() > 4 && (words[2] == "for" || words[2] == "on") && words[3] == "object")
{
int idx = sa = words[4];
--idx;