Skip to content
Permalink
Browse files

Fix broken build

The variable name changed but this didn't cause merge conflicts, so it wasn't caught before.
  • Loading branch information
sfan5 committed Sep 22, 2019
1 parent d364b6d commit d77ea764768f5cde9e8f0781356a67d723aa7609
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/network/serverpackethandler.cpp
@@ -1166,9 +1166,9 @@ void Server::handleCommand_Interact(NetworkPacket *pkt)
u16 wear = pointed_object->punch(dir, &toolcap, playersao,
time_from_last_punch);

bool changed = punchitem.addWear(wear, m_itemdef);
bool changed = selected_item.addWear(wear, m_itemdef);
if (changed)
playersao->setWieldedItem(punchitem);
playersao->setWieldedItem(selected_item);

// If the object is a player and its HP changed
if (src_original_hp != pointed_object->getHP() &&

0 comments on commit d77ea76

Please sign in to comment.
You can’t perform that action at this time.