Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect results for fnc_find when using initialIndex #422

Closed
nilsms opened this issue Jul 11, 2016 · 2 comments
Closed

Incorrect results for fnc_find when using initialIndex #422

nilsms opened this issue Jul 11, 2016 · 2 comments
Labels
Milestone

Comments

@nilsms
Copy link
Contributor

nilsms commented Jul 11, 2016

The example from fnc_find.sqf:
_result = ["frog-headed fish", "f", 5] call CBA_fnc_find;
// _result => 12
Returns -1 (no "f" found from character 5 and onwards) due to an substring call with incorrect parameters.
I have submitted a pull request which fixes this error #421

@jonpas
Copy link
Member

jonpas commented Jul 11, 2016

No need to open issues if you already PRed a fix. :)

@Killswitch00
Copy link
Contributor

Killswitch00 commented Jul 11, 2016

Can't hurt (and if one references the issue in the commit, it'll auto-close when merged)

Thanks for the fix!

@commy2 commy2 added this to the 2.5 milestone Jul 11, 2016
@commy2 commy2 added the Bug label Jul 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants