[Bug Fix] Fix Client::RemoveTitle (#4421)

* [Bug Fix] Fix Client::RemoveTitle

* Remove title/suffix if in use.

* Update titles.cpp

* Non static
This commit is contained in:
Alex King
2024-07-23 01:33:09 -04:00
committed by GitHub
parent 23308192b5
commit e5cea73e0c
2 changed files with 17 additions and 2 deletions
+1
View File
@@ -57,6 +57,7 @@ public:
void CreateNewPlayerTitle(Client *client, std::string title);
void CreateNewPlayerSuffix(Client *client, std::string suffix);
bool HasTitle(Client* client, uint32 title_id);
inline const std::vector<TitleEntry>& GetTitles() { return titles; }
protected:
std::vector<TitleEntry> titles;