summaryrefslogtreecommitdiff
path: root/drivers/windows
diff options
context:
space:
mode:
authorTomasz Chabora <kobewi4e@gmail.com>2020-02-13 16:42:49 +0100
committerkobewi <kobewi4e@gmail.com>2021-05-20 23:07:57 +0200
commitb1859510ab0a3381e0a5bec3d896032fc5019147 (patch)
tree8f7d3e9b6d31b645db48de3d4e02cc3a485588da /drivers/windows
parent78d85de13be383b24252a38e42bec5be81721ea7 (diff)
Change behavior of String.right
Diffstat (limited to 'drivers/windows')
-rw-r--r--drivers/windows/dir_access_windows.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/windows/dir_access_windows.cpp b/drivers/windows/dir_access_windows.cpp
index 5aa777757f..55f9e6de17 100644
--- a/drivers/windows/dir_access_windows.cpp
+++ b/drivers/windows/dir_access_windows.cpp
@@ -198,7 +198,7 @@ String DirAccessWindows::get_current_dir(bool p_include_drive) {
if (_get_root_string() == "") {
int p = current_dir.find(":");
if (p != -1) {
- return current_dir.right(p + 1);
+ return current_dir.substr(p + 1);
}
}
return current_dir;