summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgnacio Etcheverry <neikeq@users.noreply.github.com>2017-10-31 15:19:25 +0100
committerGitHub <noreply@github.com>2017-10-31 15:19:25 +0100
commit157fa55e34b9bf21a22876aecef89ed0a9491412 (patch)
tree1f65007ba5bf24acebac50dec26507e3c400897e
parenta9a49b89cd690ea3f06f9dbc81466ce8c440a6a1 (diff)
parent32ee3ecce4cbc1e8f2680d5e3262312733d6c483 (diff)
Merge pull request #12535 from neikeq/wtf···
Fix msbuild hint paths returning only the directory
-rw-r--r--modules/mono/editor/godotsharp_builds.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/mono/editor/godotsharp_builds.cpp b/modules/mono/editor/godotsharp_builds.cpp
index 83d2bb1471..dbe0cc294c 100644
--- a/modules/mono/editor/godotsharp_builds.cpp
+++ b/modules/mono/editor/godotsharp_builds.cpp
@@ -61,10 +61,10 @@ String _find_build_engine_on_unix(const String &p_name) {
};
for (int i = 0; i < sizeof(locations) / sizeof(const char *); i++) {
- String location = locations[i];
+ String hint_path = locations[i] + p_name;
- if (FileAccess::exists(location + p_name)) {
- return location;
+ if (FileAccess::exists(hint_path)) {
+ return hint_path;
}
}