From 2343c4208ce59bc62d7942e471e8b39076fee0ee Mon Sep 17 00:00:00 2001 From: Owen Edwards <90276513+OwenAEdwards@users.noreply.github.com> Date: Tue, 23 Apr 2024 18:51:33 -0400 Subject: [PATCH] Modified MultPlayer spawnable scene path error checking. --- modules/multiplayer/multiplayer_spawner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/multiplayer/multiplayer_spawner.cpp b/modules/multiplayer/multiplayer_spawner.cpp index 6c0669b2f34..3f3875dd78e 100644 --- a/modules/multiplayer/multiplayer_spawner.cpp +++ b/modules/multiplayer/multiplayer_spawner.cpp @@ -100,7 +100,7 @@ void MultiplayerSpawner::add_spawnable_scene(const String &p_path) { SpawnableScene sc; sc.path = p_path; if (Engine::get_singleton()->is_editor_hint()) { - ERR_FAIL_COND(!FileAccess::exists(p_path)); + ERR_FAIL_COND(!ResourceLoader::exists(p_path)); } spawnable_scenes.push_back(sc); #ifdef TOOLS_ENABLED