minor fixes

- objectfinder missing a ;
- forgot that while statements can only be conditionned on a bool in sqf
:)