@orphan : I could run your original script LibChemin.au3 without errors, after doing this :
* Open Array3381.au3 (same as the original version found in AutoIt 3.3.8.1, tested)
* Copy the following function and paste it at the end of your script LibChemin.au3
* Also the function needs to be renamed, for instance _ArrayInsert3381() , no other change needed.
Func _ArrayInsert3381(ByRef $avArray, $iElement, $vValue = "") ; <===== RENAMED function
If Not IsArray($avArray) Then Return SetError(1, 0, 0)
If UBound($avArray, 0) <> 1 Then Return SetError(2, 0, 0)
; Add 1 to the array
Local $iUBound = UBound($avArray) + 1
ReDim $avArray[$iUBound]
; Move all entries over til the specified element
For $i = $iUBound - 1 To $iElement + 1 Step -1
$avArray[$i] = $avArray[$i - 1]
Next
; Add the value in the specified element
$avArray[$iElement] = $vValue
Return $iUBound
EndFunc ;==>_ArrayInsert3381
* Change 1 line in your script, to call :
_ArrayInsert3381($openlist, $i, $node)
Instead of :
_ArrayInsert($openlist, $i, $node)
* Now you can use in your script the one and only :
#include "Array.au3"