Fixes #64962 that cause program run into infinite loop
Fixes #64962 that cause program run into infinite loop

godotengine/godot,BastiaanOlij/godot,godotengine/godot,godotengine/godot,sanikoyes/godot,josempans/godot,pkowal1982/godot,vkbsb/godot,godotengine/godot,guilhermefelipecgs/godot,pkowal1982/godot,vkbsb/godot,pkowal1982/godot,vkbsb/godot,sanikoyes/godot,pkowal1982/godot,guilhermefelipecgs/godot,BastiaanOlij/godot,pkowal1982/godot,sanikoyes/godot,guilhermefelipecgs/godot,guilhermefelipecgs/godot,josempans/godot,josempans/godot,josempans/godot,BastiaanOlij/godot,godotengine/godot,BastiaanOlij/godot,godotengine/godot,guilhermefelipecgs/godot,guilhermefelipecgs/godot,sanikoyes/godot,vkbsb/godot,vkbsb/godot,sanikoyes/godot,sanikoyes/godot,guilhermefelipecgs/godot,josempans/godot,BastiaanOlij/godot,vkbsb/godot,BastiaanOlij/godot,BastiaanOlij/godot,josempans/godot,pkowal1982/godot,josempans/godot,BastiaanOlij/godot,pkowal1982/godot,pkowal1982/godot,vkbsb/godot,sanikoyes/godot,godotengine/godot,godotengine/godot,vkbsb/godot,josempans/godot,sanikoyes/godot,guilhermefelipecgs/godot