[Code] ZSList Global to Singleton Cleanup (#4940)

* [Code] ZSList Global to Singleton Cleanup

* Final

* Post merge fixes

---------

Co-authored-by: Chris Miles <akkadius1@gmail.com>
This commit is contained in:
Alex KingandChris Miles authored and GitHub committed 2025-06-25 15:16:44 -05:00
1 parent 643ee56433
commit dc261bb203
24 files changed
+266 -275

No files matched your search

+1 -2
View File
@@ -26,7 +26,6 @@
#include "../common/classes.h"
extern ClientList client_list;
extern ZSList zoneserver_list;
GroupLFP::GroupLFP(uint32 inLeaderID) {
@@ -270,7 +269,7 @@ void GroupLFPList::SendLFPMatches(ServerLFPMatchesRequest_Struct* smrs) {
CLE->Server()->SendPacket(Pack);
}
else {
ZoneServer* zs = zoneserver_list.FindByName(smrs->FromName);
ZoneServer* zs = ZSList::Instance()->FindByName(smrs->FromName);
if (zs != nullptr)
zs->SendPacket(Pack);
}