From: Auke Kok Date: Fri, 7 Apr 2017 05:04:40 +0000 (-0700) Subject: Fix "error: ‘playerSAO’ was not declared" X-Git-Tag: 0.4.16~281 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=94358a709bdb1fe8101b2b228dec78b67fb377a6;p=oweals%2Fminetest.git Fix "error: ‘playerSAO’ was not declared" Cause: 351cc2e79a7d78f7ec97ff9b33e4f0bad4042b19 A rebase issue missed a rename from playerSAO to playersao. Tested. --- diff --git a/src/network/serverpackethandler.cpp b/src/network/serverpackethandler.cpp index 26c297a8f..27c33a4f6 100644 --- a/src/network/serverpackethandler.cpp +++ b/src/network/serverpackethandler.cpp @@ -1107,7 +1107,7 @@ void Server::handleCommand_Damage(NetworkPacket* pkt) } if (g_settings->getBool("enable_damage")) { - if (playerSAO->isDead()) { + if (playersao->isDead()) { verbosestream << "Server::ProcessData(): Info: " "Ignoring damage as player " << player->getName() << " is already dead." << std::endl;