mirror of
https://github.com/godotengine/godot.git
synced 2025-01-19 00:11:19 +00:00
Merge pull request #7560 from volzhs/issue-7555
Fix crash when creating new project
This commit is contained in:
commit
d13f2f9e25
@ -3898,9 +3898,8 @@ String String::get_extension() const {
|
|||||||
String String::plus_file(const String& p_file) const {
|
String String::plus_file(const String& p_file) const {
|
||||||
if (empty())
|
if (empty())
|
||||||
return p_file;
|
return p_file;
|
||||||
if (operator [](length()-1)=='/' || p_file.operator [](0)=='/')
|
if (operator [](length()-1)=='/' || (p_file.size()>0 && p_file.operator [](0)=='/'))
|
||||||
return *this+p_file;
|
return *this+p_file;
|
||||||
else
|
|
||||||
return *this+"/"+p_file;
|
return *this+"/"+p_file;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user