Fix issues with Client::SetHideMe (#2403)

Arg was shadowing the member variable and we weren't updating the member
variable
This commit is contained in:
Michael Cook (mackal)
2022-09-01 11:48:23 -04:00
committed by GitHub
parent 6f7fa98996
commit c613dbb2f7
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -3385,10 +3385,12 @@ void Client::SetTint(int16 in_slot, EQ::textures::Tint_Struct& color) {
}
void Client::SetHideMe(bool gm_hide_me)
void Client::SetHideMe(bool flag)
{
EQApplicationPacket app;
gm_hide_me = flag;
if (gm_hide_me) {
database.SetHideMe(AccountID(), true);
CreateDespawnPacket(&app, false);