Prevented infinite loop on incorrect syntax in repeat script.

develop
expwnent 2014-06-27 01:46:00 -04:00
parent 66098c2bb4
commit 61d73cc6c2
1 changed files with 2 additions and 0 deletions

@ -61,6 +61,8 @@ while i <= #args do
qerror("repeat -printResult " .. args[i+1] .. ": expected true or false") qerror("repeat -printResult " .. args[i+1] .. ": expected true or false")
end end
i = i+2 i = i+2
else
qerror('Improper arguments to repeat.')
end end
end end