From e4469dc77b559c37b557e246b362fb32e8c4d2be Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Thu, 17 Oct 2024 09:00:18 +0200 Subject: [PATCH] [godot] Fix compilation with emscripten. --- spine-godot/spine_godot/SpineAtlasResource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-godot/spine_godot/SpineAtlasResource.cpp b/spine-godot/spine_godot/SpineAtlasResource.cpp index eb0b8d2bf..0e59817ae 100644 --- a/spine-godot/spine_godot/SpineAtlasResource.cpp +++ b/spine-godot/spine_godot/SpineAtlasResource.cpp @@ -71,7 +71,7 @@ class GodotSpineTextureLoader : public spine::TextureLoader { static bool fix_path(String &path) { const String prefix = "res:/"; auto i = path.find(prefix); - if (i == std::string::npos) { + if (i == -1) { return false; }