summaryrefslogtreecommitdiff
path: root/src/progs/manaplus/actions/commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/progs/manaplus/actions/commands.cpp')
-rw-r--r--src/progs/manaplus/actions/commands.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/progs/manaplus/actions/commands.cpp b/src/progs/manaplus/actions/commands.cpp
index ff0d91e3d..53c0996ac 100644
--- a/src/progs/manaplus/actions/commands.cpp
+++ b/src/progs/manaplus/actions/commands.cpp
@@ -986,11 +986,11 @@ impHandler0(leaveParty)
impHandler0(leaveGuild)
{
- if ((guildHandler != nullptr) && (localPlayer != nullptr))
+ if ((socialWindow != nullptr) && (localPlayer != nullptr))
{
const Guild *const guild = localPlayer->getGuild();
if (guild != nullptr)
- guildHandler->leave(guild->getId());
+ socialWindow->confirmGuildLeave();
return true;
}
return false;