summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 124f2dfe1..0310bb8ad 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -1470,7 +1470,7 @@ int LocalPlayer::getAttackRange()
Item *weapon = PlayerInfo::getEquipment(EQUIP_FIGHT1_SLOT);
if (weapon)
{
- const ItemInfo info = weapon->getInfo();
+ const ItemInfo &info = weapon->getInfo();
return info.getAttackRange();
}
return 48; // unarmed range