From 93895ae24fe93d7f4285ccdf15934cf3e47e084b Mon Sep 17 00:00:00 2001 From: Michele Valente Date: Thu, 17 May 2018 11:34:05 +0200 Subject: [PATCH] fixes build error on Linux after its introduction in #18949 The function expects now a return value. Returning NULL seems to work in this case. --- modules/mono/editor/godotsharp_builds.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/mono/editor/godotsharp_builds.cpp b/modules/mono/editor/godotsharp_builds.cpp index aa597ddc2857..09cfbb1aed5a 100644 --- a/modules/mono/editor/godotsharp_builds.cpp +++ b/modules/mono/editor/godotsharp_builds.cpp @@ -129,12 +129,12 @@ MonoString *godot_icall_BuildInstance_get_MSBuildPath() { if (build_tool == GodotSharpBuilds::XBUILD) { if (xbuild_path.empty()) { WARN_PRINT("Cannot find binary for '" PROP_NAME_XBUILD "'"); - return; + return NULL; } } else { if (msbuild_path.empty()) { WARN_PRINT("Cannot find binary for '" PROP_NAME_MSBUILD_MONO "'"); - return; + return NULL; } }