Skip to content

Commit

Permalink
fixes build error on Linux after its introduction in #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 hpvb committed Jun 1, 2018
1 parent 3d3e4e6 commit 9294978
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/mono/editor/godotsharp_builds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,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 9294978

Please sign in to comment.