You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-21 14:57:09 +00:00
Do not use Dictionary::keys() for Dictionary iteration.
This commit is contained in:
@@ -54,10 +54,9 @@ void OpenXRSelectRuntime::_update_items() {
|
||||
set_item_metadata(index, "");
|
||||
index++;
|
||||
|
||||
Array keys = runtimes.keys();
|
||||
for (int i = 0; i < keys.size(); i++) {
|
||||
String key = keys[i];
|
||||
String path = runtimes[key];
|
||||
for (const KeyValue<Variant, Variant> &kv : runtimes) {
|
||||
const String &key = kv.key;
|
||||
const String &path = kv.value;
|
||||
String adj_path = path.replace("~", home_folder);
|
||||
|
||||
if (da->file_exists(adj_path)) {
|
||||
|
||||
Reference in New Issue
Block a user