summaryrefslogtreecommitdiff
path: root/src/listeners/playerdeathlistener.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/listeners/playerdeathlistener.h')
-rw-r--r--src/listeners/playerdeathlistener.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/listeners/playerdeathlistener.h b/src/listeners/playerdeathlistener.h
index 67eb031a0..9f7974ae2 100644
--- a/src/listeners/playerdeathlistener.h
+++ b/src/listeners/playerdeathlistener.h
@@ -45,8 +45,8 @@ struct PlayerDeathListener final : public ActionListener
{
void action(const ActionEvent &event A_UNUSED)
{
- if (Net::getPlayerHandler())
- Net::getPlayerHandler()->respawn();
+ if (playerHandler)
+ playerHandler->respawn();
deathNotice = nullptr;
DialogsManager::closeDialogs();