summaryrefslogtreecommitdiff
path: root/src/resources/iteminfo.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-07-28 19:25:01 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-07-28 19:25:01 +0200
commit44d8856c777790449df46e3b5348a6a7433a75d8 (patch)
tree45a8587edc9f03151da04d034d1f6fbf202a5381 /src/resources/iteminfo.cpp
parent07abd88c7e3d606aaa0c8c7387c398d93daae445 (diff)
downloadmana-44d8856c777790449df46e3b5348a6a7433a75d8.tar.gz
mana-44d8856c777790449df46e3b5348a6a7433a75d8.tar.bz2
mana-44d8856c777790449df46e3b5348a6a7433a75d8.tar.xz
mana-44d8856c777790449df46e3b5348a6a7433a75d8.zip
Changed mAttackType to mWeaponAttackType were appropriate.
To avoid misunderstanding between the actual attackType and this one. (Trivial fix.)
Diffstat (limited to 'src/resources/iteminfo.cpp')
-rw-r--r--src/resources/iteminfo.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/resources/iteminfo.cpp b/src/resources/iteminfo.cpp
index 4b1d82ea..b7b29ee5 100644
--- a/src/resources/iteminfo.cpp
+++ b/src/resources/iteminfo.cpp
@@ -47,23 +47,23 @@ void ItemInfo::setWeaponType(int type)
switch (type)
{
case WPNTYPE_NONE:
- mAttackType = ACTION_DEFAULT;
+ mWeaponAttackType = ACTION_DEFAULT;
break;
case WPNTYPE_KNIFE:
case WPNTYPE_SWORD:
- mAttackType = ACTION_ATTACK_STAB;
+ mWeaponAttackType = ACTION_ATTACK_STAB;
break;
case WPNTYPE_THROWN:
- mAttackType = ACTION_ATTACK_THROW;
+ mWeaponAttackType = ACTION_ATTACK_THROW;
break;
case WPNTYPE_BOW:
- mAttackType = ACTION_ATTACK_BOW;
+ mWeaponAttackType = ACTION_ATTACK_BOW;
break;
case WPNTYPE_POLEARM:
- mAttackType = ACTION_ATTACK_SWING;
+ mWeaponAttackType = ACTION_ATTACK_SWING;
break;
default:
- mAttackType = ACTION_ATTACK;
+ mWeaponAttackType = ACTION_ATTACK;
}
}