Fix "error: ‘playerSAO’ was not declared"
authorAuke Kok <sofar@foo-projects.org>
Fri, 7 Apr 2017 05:04:40 +0000 (22:04 -0700)
committerAuke Kok <sofar@foo-projects.org>
Fri, 7 Apr 2017 05:05:31 +0000 (22:05 -0700)
Cause: 351cc2e79a7d78f7ec97ff9b33e4f0bad4042b19

A rebase issue missed a rename from playerSAO to playersao.

Tested.

src/network/serverpackethandler.cpp

index 26c297a8f61d0d8480e74b1814790dc925157f5f..27c33a4f60b679f65cf20e0486914ebd0738b33c 100644 (file)
@@ -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;