Merge pull request #12535 from neikeq/wtf···

Fix msbuild hint paths returning only the directory
This commit is contained in:
Ignacio Etcheverry 2017-10-31 15:19:25 +01:00 committed by GitHub
commit 157fa55e34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}
}