summaryrefslogtreecommitdiff
path: root/src/net/protocol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/protocol.cpp')
-rw-r--r--src/net/protocol.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/protocol.cpp b/src/net/protocol.cpp
index fac6b11d..5a3fd487 100644
--- a/src/net/protocol.cpp
+++ b/src/net/protocol.cpp
@@ -272,9 +272,9 @@ void attack(Being *target)
char_info->lastAttackTime = 0;
player_node->action = ATTACK;
- action(0, target->id);
+ action(0, target->getId());
player_node->walk_time = tick_time;
- if (player_node->weapon == 2)
+ if (player_node->getWeapon() == 2)
sound.playSfx("sfx/bow_shoot_1.ogg");
else
sound.playSfx("sfx/fist-swish.ogg");