summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2023-01-03 10:23:49 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2023-01-03 10:23:49 +0200
commit5eeefb2174a1144f728cfc7d31aee9e975377b62 (patch)
treed8821f00ddb7f1399745c25023364f031f119dbf /scene
parentc5bfe1303a59b92eb94371fee6a1078dd08b7309 (diff)
Fix file dialog crash on forward click when history is empty.
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/file_dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/file_dialog.cpp b/scene/gui/file_dialog.cpp
index 11a3803b35..a846ab9485 100644
--- a/scene/gui/file_dialog.cpp
+++ b/scene/gui/file_dialog.cpp
@@ -411,7 +411,7 @@ void FileDialog::_go_back() {
}
void FileDialog::_go_forward() {
- if (local_history_pos == local_history.size() - 1) {
+ if (local_history_pos >= local_history.size() - 1) {
return;
}