Skip to content

Commit

Permalink
fixes build error on Linux after its introduction in godotengine#18949
Browse files Browse the repository at this point in the history
The function expects now a return value. Returning NULL seems to work in
this case.

(cherry picked from commit 6c74f3d)
  • Loading branch information
Valentactive authored and malcolmhoward committed Jul 31, 2018
1 parent 59c98cc commit 7fc7df6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/mono/editor/godotsharp_builds.cpp
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 7fc7df6

Please sign in to comment.