Fixed hasString and hasNumber for global and object arrays
The HasNumber and HasString conditions for objects would always return true, regardless of whether the array contained the specified value or not. The reason was that the functions referenced a nonexistent variable named __ArrayTools.Temp.
This PR removes all occurrences of this prefix, and now uses the extension scene variable simply named Temp.
An example project where the issue is documented has been attached to this PR. ArrayToolsTest.zip
Thank you for the fix. Please increment the revision in the version.
Someone reported the issue and I forgot about this PR. I guess it's already fixed.
- https://github.com/GDevelopApp/GDevelop-extensions/issues/1867
Someone reported the issue and I forgot about this PR. I guess it's already fixed.
* [[ArrayTools] Scene variable __ArrayTools not exposed properly #1867](https://github.com/GDevelopApp/GDevelop-extensions/issues/1867)
Looks like it. :-) It has the same changes, although it also appends a 2 to the variable names.
It’s an action name. The one without the 2 is deprecated.