﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3943	Using a function return to increment an counter array element causes TWO function calls	RTFC	Jon	"When a function call yields an index that is used directly to increment an array element, the function is called twice! 
Example:

{{{
Global $size=5
Global $array[$size]

consolewrite( ""standalone call yields: "" & _GetRandomIndex($size-1) & @CRLF & @CRLF)
consolewrite( ""array index call + increment yields two calls?!"" & @CRLF)

$array[_GetRandomIndex($size-1)]+=1

Func _GetRandomIndex($maxindex)
	ConsoleWrite(""func called"" & @CRLF)
	Return Random(0,$maxindex,1)
EndFunc


}}}
"	Bug	assigned		AutoIt	3.3.14.5	None		array index function call	
