From 32fe53ff562c2e229bfd00e98a2f17f6a00dbae8 Mon Sep 17 00:00:00 2001 From: SamuXarick <43006711+SamuXarick@users.noreply.github.com> Date: Fri, 31 Oct 2025 11:38:49 +0000 Subject: [PATCH] Codefix: Add missing 'this->' in ScriptList (#14747) --- src/script/api/script_list.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/script/api/script_list.cpp b/src/script/api/script_list.cpp index 086a6b603d..fc629d39fe 100644 --- a/src/script/api/script_list.cpp +++ b/src/script/api/script_list.cpp @@ -100,7 +100,7 @@ public: this->item_next = *this->bucket_list_iter; SQInteger item_current = this->item_next; - FindNext(); + this->FindNext(); return item_current; } @@ -139,7 +139,7 @@ public: if (this->IsEnd()) return 0; SQInteger item_current = this->item_next; - FindNext(); + this->FindNext(); return item_current; } @@ -149,7 +149,7 @@ public: /* If we remove the 'next' item, skip to the next */ if (item == this->item_next) { - FindNext(); + this->FindNext(); return; } } @@ -194,7 +194,7 @@ public: this->item_next = *this->bucket_list_iter; SQInteger item_current = this->item_next; - FindNext(); + this->FindNext(); return item_current; } @@ -234,7 +234,7 @@ public: if (this->IsEnd()) return 0; SQInteger item_current = this->item_next; - FindNext(); + this->FindNext(); return item_current; } @@ -244,7 +244,7 @@ public: /* If we remove the 'next' item, skip to the next */ if (item == this->item_next) { - FindNext(); + this->FindNext(); return; } } @@ -277,7 +277,7 @@ public: this->item_next = this->item_iter->first; SQInteger item_current = this->item_next; - FindNext(); + this->FindNext(); return item_current; } @@ -296,7 +296,7 @@ public: return; } ++this->item_iter; - if (this->item_iter != this->list->items.end()) item_next = this->item_iter->first; + if (this->item_iter != this->list->items.end()) this->item_next = this->item_iter->first; } SQInteger Next() override @@ -304,7 +304,7 @@ public: if (this->IsEnd()) return 0; SQInteger item_current = this->item_next; - FindNext(); + this->FindNext(); return item_current; } @@ -314,7 +314,7 @@ public: /* If we remove the 'next' item, skip to the next */ if (item == this->item_next) { - FindNext(); + this->FindNext(); return; } } @@ -351,7 +351,7 @@ public: this->item_next = this->item_iter->first; SQInteger item_current = this->item_next; - FindNext(); + this->FindNext(); return item_current; } @@ -375,7 +375,7 @@ public: } else { --this->item_iter; } - if (this->item_iter != this->list->items.end()) item_next = this->item_iter->first; + if (this->item_iter != this->list->items.end()) this->item_next = this->item_iter->first; } SQInteger Next() override @@ -383,7 +383,7 @@ public: if (this->IsEnd()) return 0; SQInteger item_current = this->item_next; - FindNext(); + this->FindNext(); return item_current; } @@ -393,7 +393,7 @@ public: /* If we remove the 'next' item, skip to the next */ if (item == this->item_next) { - FindNext(); + this->FindNext(); return; } } @@ -763,7 +763,7 @@ void ScriptList::RemoveList(ScriptList *list) this->modifications++; if (list == this) { - Clear(); + this->Clear(); } else { for (const auto &item : list->items) { this->RemoveItem(item.first);