Jelajahi Sumber

Fix sizeof wrong type

Ignacio Etcheverry 8 tahun lalu
induk
melakukan
5ab3537179
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      modules/mono/editor/godotsharp_builds.cpp

+ 1 - 1
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)) {