Skip to content

Commit 443c075

Browse files
BenLubardsnopek
authored andcommitted
fix iterators making unintended copies
(cherry picked from commit 7fd0999)
1 parent 52937a3 commit 443c075

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/class_db.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ void ClassDB::initialize_class(const ClassInfo &p_cl) {
389389
}
390390

391391
void ClassDB::initialize(GDExtensionInitializationLevel p_level) {
392-
for (const std::pair<StringName, ClassInfo> pair : classes) {
392+
for (const std::pair<const StringName, ClassInfo> &pair : classes) {
393393
const ClassInfo &cl = pair.second;
394394
if (cl.level != p_level) {
395395
continue;

0 commit comments

Comments
 (0)