Browse Source

Merge pull request #18967 from Valentactive/fix-mono-build-linux

fixes build error on Linux after its introduction in #18949
Rémi Verschelde 7 years ago
parent
commit
edc3e6b0da
1 changed files with 2 additions and 2 deletions
  1. 2 2
      modules/mono/editor/godotsharp_builds.cpp

+ 2 - 2
modules/mono/editor/godotsharp_builds.cpp

@@ -128,12 +128,12 @@ MonoString *godot_icall_BuildInstance_get_MSBuildPath() {
 	if (build_tool == GodotSharpBuilds::XBUILD) {
 	if (build_tool == GodotSharpBuilds::XBUILD) {
 		if (xbuild_path.empty()) {
 		if (xbuild_path.empty()) {
 			WARN_PRINT("Cannot find binary for '" PROP_NAME_XBUILD "'");
 			WARN_PRINT("Cannot find binary for '" PROP_NAME_XBUILD "'");
-			return;
+			return NULL;
 		}
 		}
 	} else {
 	} else {
 		if (msbuild_path.empty()) {
 		if (msbuild_path.empty()) {
 			WARN_PRINT("Cannot find binary for '" PROP_NAME_MSBUILD_MONO "'");
 			WARN_PRINT("Cannot find binary for '" PROP_NAME_MSBUILD_MONO "'");
-			return;
+			return NULL;
 		}
 		}
 	}
 	}