Can this function be pure?

I followed a tutorial some time ago while learning blueprints. I’ve just come back to it as i need to repeat what i did and saw this. Im still getting to grips with programming terminology so forgive me if this is very basic.

In the tutorial this was left as an inpure function, but i’m not sure why. from my limited understanding if a function is just checking something (i.e. it doesnt change anything) it can be pure.

Am i missing something or was it just an oversight by the person doing the tutorial?

Thanks.

They are, and thanks.

Providing the 2 loc variables are in scope here, local to this function, then yes, I’d say you’re correct.