[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

+1 -3
View File
@@ -38,8 +38,6 @@ Copyright (C) 2001-2002 EQEMu Development Team (http://eqemu.org)
#include "petitions.h"
#include "worldserver.h"
PetitionList petition_list;
extern WorldServer worldserver;
void Petition::SendPetitionToPlayer(Client* clientto) {
@@ -288,7 +286,7 @@ void ZoneDatabase::RefreshPetitionsFromDB()
newpet->SetCheckedOut(true);
else
newpet->SetCheckedOut(false);
petition_list.AddPetition(newpet);
PetitionList::Instance()->AddPetition(newpet);
}
}