Just for notice, if you call it like this, it works:
window_set_cursor_sprite_ext(myCursorSprite, 0, 2.6, 2.6, c_white, 1);
Meaning as soon as you use e.g. "2.66" istead of "2.6" it crashes