mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-20 04:10:16 +00:00
don't use a pointer for ActionWeapon
This commit is contained in:
parent
cab0002461
commit
983c33c4c8
1 changed files with 1 additions and 6 deletions
|
@ -504,13 +504,8 @@ namespace MWMechanics
|
|||
targetWeapon = *weaponSlot;
|
||||
}
|
||||
|
||||
std::shared_ptr<Action> targetWeaponAction(new ActionWeapon(targetWeapon));
|
||||
|
||||
bool isRangedCombat = false;
|
||||
if (targetWeaponAction.get())
|
||||
{
|
||||
rangeAttackOfTarget = targetWeaponAction->getCombatRange(isRangedCombat);
|
||||
}
|
||||
rangeAttackOfTarget = ActionWeapon(targetWeapon).getCombatRange(isRangedCombat);
|
||||
|
||||
if (mMovement.mPosition[0] || mMovement.mPosition[1])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue