From cec47798d191435f33654088d617c1426eaa3b9a Mon Sep 17 00:00:00 2001 From: John <63141077+AconiteX@users.noreply.github.com> Date: Tue, 17 Aug 2021 10:47:57 -0400 Subject: [PATCH] Update Client.cpp --- engine/server/library/serverGame/src/shared/core/Client.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/server/library/serverGame/src/shared/core/Client.cpp b/engine/server/library/serverGame/src/shared/core/Client.cpp index 79bc4f56..78f2c8ca 100755 --- a/engine/server/library/serverGame/src/shared/core/Client.cpp +++ b/engine/server/library/serverGame/src/shared/core/Client.cpp @@ -1992,6 +1992,9 @@ bool Client::setGodMode(bool value) { m_godLevel = 0; m_godMode = false; m_godValidated = false; + // reset observers and notify cells of potential change + CellPermissions::ViewerChangeObserver o(creatureObject); + ObserveTracker::onGodModeChanged(*this); // remove the characterAbility "admin" so GM commands aren't sent by the client while not in God Mode IGNORE_RETURN(creatureObject->revokeCommand(AdminAccountManager::getAdminCommandName(), false, true)); return true;