The code is this:
if is_undefined(A_SA[V_X,V_Y])=false and A_SA[V_X,V_Y]=0
{
//actions from the "if" statement
}
The error message is this:
Push :: Execution Error - Variable Index [0,10] out of range [10,10] - -1.A_SA(100006,10)
at gml_Object_objt_Canvas_StepNormalEvent_2 (line 25) - if is_undefined(A_SA[V_X,V_Y])=false and A_SA[V_X,V_Y]=0
Why is this happening and how can I stop game-maker from trying to check the value of a variable outside of an array?