[Code] PetitionList Global to Singleton Cleanup (#4944)

* [Code] PetitionList Global to Singleton Cleanup

* Update worldserver.cpp

* Update worldserver.cpp
This commit is contained in:
Alex King authored and GitHub committed 2025-06-25 13:15:21 -05:00
1 parent 98eff43346
commit f3aaeff0a9
9 files changed
+38 -41

No files matched your search

+6
View File
@@ -112,6 +112,12 @@ public:
bool FindPetitionByAccountName(const char* acctname);
bool DeletePetitionByCharName(const char* charname);
static PetitionList* Instance()
{
static PetitionList instance;
return &instance;
}
private:
LinkedList<Petition*> list;
Mutex PList_Mutex;