From 5ab3537179a552f8d95e680ec0e35621615248f4 Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Sat, 7 Oct 2017 04:22:26 +0200 Subject: [PATCH] Fix sizeof wrong type --- modules/mono/editor/godotsharp_builds.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mono/editor/godotsharp_builds.cpp b/modules/mono/editor/godotsharp_builds.cpp index b10f1f87d88..1015c8658da 100644 --- a/modules/mono/editor/godotsharp_builds.cpp +++ b/modules/mono/editor/godotsharp_builds.cpp @@ -59,7 +59,7 @@ String _find_build_engine_on_unix(const String &p_name) { "/opt/novell/mono/bin/" }; - for (int i = 0; i < sizeof(locations) / sizeof(char); i++) { + for (int i = 0; i < sizeof(locations) / sizeof(const char *); i++) { String location = locations[i]; if (FileAccess::exists(location + p_name)) {