summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/query/character_turn.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/query/character_turn.erl b/src/query/character_turn.erl
index b3af73d..d8fe694 100644
--- a/src/query/character_turn.erl
+++ b/src/query/character_turn.erl
@@ -172,7 +172,7 @@ handle_character_instance_switching_weapons (QueryState, Input) ->
ControlledCharacterAttributes =
character:get_attributes(ControlledCharacter),
{PrimaryWeapon, SecondaryWeapon} =
- character:get_weapons(ControlledCharacter),
+ character:get_weapon_ids(ControlledCharacter),
ControlledCharacterIX = Input#input.character_instance_ix,
UpdatedWeapons = {SecondaryWeapon, PrimaryWeapon},
@@ -186,8 +186,9 @@ handle_character_instance_switching_weapons (QueryState, Input) ->
character:set_statistics
(
UpdatedControlledCharacterStatistics,
- character:set_weapons
+ character:set_weapon_ids
(
+ UpdatedWeapons,
ControlledCharacter
)
),