[godot] Fix compilation with emscripten.

This commit is contained in:
Mario Zechner 2024-10-17 09:00:18 +02:00
parent 09542677f4
commit e4469dc77b

View File

@ -71,7 +71,7 @@ public:
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;
}