You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
GDScript: Use pointer instead of references in cache
They are not supposed to be kept alive and this is cleaner and less error-prone than unreferencing the elements.
This commit is contained in:
@@ -70,9 +70,9 @@ public:
|
||||
|
||||
class GDScriptCache {
|
||||
// String key is full path.
|
||||
HashMap<String, Ref<GDScriptParserRef>> parser_map;
|
||||
HashMap<String, Ref<GDScript>> shallow_gdscript_cache;
|
||||
HashMap<String, Ref<GDScript>> full_gdscript_cache;
|
||||
HashMap<String, GDScriptParserRef *> parser_map;
|
||||
HashMap<String, GDScript *> shallow_gdscript_cache;
|
||||
HashMap<String, GDScript *> full_gdscript_cache;
|
||||
HashMap<String, Set<String>> dependencies;
|
||||
|
||||
friend class GDScript;
|
||||
|
||||
Reference in New Issue
Block a user