[bugfix] removed check in setRespawnWorld due to the nature of NULL

This commit is contained in:
lonaasan 2024-09-09 11:35:40 +02:00
parent 732fc2a9d7
commit 227585f1dc

View File

@ -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;
}