summaryrefslogtreecommitdiffstats
path: root/modules/multiplayer
diff options
context:
space:
mode:
authorOwen Edwards <90276513+OwenAEdwards@users.noreply.github.com>2024-04-23 18:51:33 -0400
committerGitHub <noreply@github.com>2024-04-23 18:51:33 -0400
commit2343c4208ce59bc62d7942e471e8b39076fee0ee (patch)
tree6097d559945e34c44e5fbef7624f34cd1af8704b /modules/multiplayer
parentc7f56d327d265fa7b2541fe7c5e6cc1730661749 (diff)
downloadredot-engine-2343c4208ce59bc62d7942e471e8b39076fee0ee.tar.gz
Modified MultPlayer spawnable scene path error checking.
Diffstat (limited to 'modules/multiplayer')
-rw-r--r--modules/multiplayer/multiplayer_spawner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/multiplayer/multiplayer_spawner.cpp b/modules/multiplayer/multiplayer_spawner.cpp
index 6c0669b2f3..3f3875dd78 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