From 8eb5672920f8834ffe6edbff62713963b8d2ba3d Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Mon, 31 Jul 2017 20:50:40 +0100 Subject: cWorld::SendBlockTo take player by ref --- src/Entities/Player.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Entities') diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index f66f2b73d..9a5d6cf58 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -2733,7 +2733,7 @@ bool cPlayer::PlaceBlocks(const sSetBlockVector & a_Blocks) // Abort - re-send all the current blocks in the a_Blocks' coords to the client: for (auto blk2: a_Blocks) { - m_World->SendBlockTo(blk2.GetX(), blk2.GetY(), blk2.GetZ(), this); + m_World->SendBlockTo(blk2.GetX(), blk2.GetY(), blk2.GetZ(), *this); } return false; } @@ -2747,7 +2747,7 @@ bool cPlayer::PlaceBlocks(const sSetBlockVector & a_Blocks) // Abort - re-send all the current blocks in the a_Blocks' coords to the client: for (auto blk2: a_Blocks) { - m_World->SendBlockTo(blk2.GetX(), blk2.GetY(), blk2.GetZ(), this); + m_World->SendBlockTo(blk2.GetX(), blk2.GetY(), blk2.GetZ(), *this); } return false; } -- cgit v1.2.3