From 227585f1dc027dec43152a409dbadb26b19e2c3d Mon Sep 17 00:00:00 2001 From: lonaasan Date: Mon, 9 Sep 2024 11:35:40 +0200 Subject: [PATCH] [bugfix] removed check in setRespawnWorld due to the nature of NULL --- source/game/StarWorldClient.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/source/game/StarWorldClient.cpp b/source/game/StarWorldClient.cpp index 0d3e039..3e85c79 100644 --- a/source/game/StarWorldClient.cpp +++ b/source/game/StarWorldClient.cpp @@ -142,12 +142,9 @@ bool WorldClient::respawnInWorld() const { return m_respawnInWorld; } -bool WorldClient::setRespawnInWorld(bool value = NULL) { +bool WorldClient::setRespawnInWorld(bool value) { - if (value != NULL) - m_respawnInWorld = value; - else - m_respawnInWorld ^= true; // dont know if we still want to set the respawn if no argument is given here + m_respawnInWorld = value; return m_respawnInWorld; }