mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
Fix crash when creating new project
This commit is contained in:
parent
6a3dae5be9
commit
57350faee4
@ -3898,10 +3898,9 @@ String String::get_extension() const {
|
||||
String String::plus_file(const String& p_file) const {
|
||||
if (empty())
|
||||
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;
|
||||
else
|
||||
return *this+"/"+p_file;
|
||||
return *this+"/"+p_file;
|
||||
}
|
||||
|
||||
String String::percent_encode() const {
|
||||
|
Loading…
Reference in New Issue
Block a user